aboutsummaryrefslogtreecommitdiffstats
path: root/socket.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>1998-02-24 20:35:00 +0000
committerEric S. Raymond <esr@thyrsus.com>1998-02-24 20:35:00 +0000
commitdcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c (patch)
tree1fcb2efb739fa29461c58e87ad37d63f11ec92ef /socket.c
parent4f25b2a358a81a225bc2c925bba0445d7763b89d (diff)
downloadfetchmail-dcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c.tar.gz
fetchmail-dcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c.tar.bz2
fetchmail-dcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c.zip
Fixes from Craig.
svn path=/trunk/; revision=1670
Diffstat (limited to 'socket.c')
-rw-r--r--socket.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/socket.c b/socket.c
index bb68833c..3ba58696 100644
--- a/socket.c
+++ b/socket.c
@@ -38,7 +38,7 @@ int SockOpen(const char *host, const char *service, const char *options)
int i;
struct addrinfo *ai, req;
#if NET_SECURITY
- struct net_security_operation request[NET_SECURITY_OPERATION_MAX];
+ void *request = NULL;
int requestlen;
#endif /* NET_SECURITY */
@@ -54,10 +54,12 @@ int SockOpen(const char *host, const char *service, const char *options)
if (!options)
requestlen = 0;
else
- if (net_security_strtorequest((char *)options, request, &requestlen))
+ if (net_security_strtorequest((char *)options, &request, &requestlen))
goto ret;
i = inner_connect(ai, request, requestlen, NULL,NULL, "fetchmail", NULL);
+ if (request)
+ free(request);
ret:
#else /* NET_SECURITY */