diff options
author | James Yonan | 2010-12-13 09:27:08 +0000 |
---|---|---|
committer | James Yonan | 2010-12-13 09:27:08 +0000 |
commit | ae1884c0cbf42c21e54922c150cde44c43200340 (patch) | |
tree | 1e6d88d1b07106618ed92e69c68f876658664bc1 /base64.c | |
parent | 7621741b480f93411928c66735d2ee9c7f69de3b (diff) | |
download | openvpn-ae1884c0cbf42c21e54922c150cde44c43200340.zip openvpn-ae1884c0cbf42c21e54922c150cde44c43200340.tar.gz |
Misc fixes to r6708.
Fixed issue where "signal SIGTERM" entered from the management
interface might get subsequently downgraded to a SIGUSR1.
git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@6716 e7ae566f-a301-0410-adde-c780ea21d3b5
Diffstat (limited to 'base64.c')
-rw-r--r-- | base64.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -50,6 +50,8 @@ base64_encode(const void *data, int size, char **str) int c; const unsigned char *q; + if (size < 0) + return -1; p = s = (char *) malloc(size * 4 / 3 + 4); if (p == NULL) return -1; |