diff options
author | Eric S. Raymond <esr@thyrsus.com> | 1998-02-24 20:35:00 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 1998-02-24 20:35:00 +0000 |
commit | dcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c (patch) | |
tree | 1fcb2efb739fa29461c58e87ad37d63f11ec92ef /rcfile_y.y | |
parent | 4f25b2a358a81a225bc2c925bba0445d7763b89d (diff) | |
download | fetchmail-dcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c.tar.gz fetchmail-dcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c.tar.bz2 fetchmail-dcd36e91eeb5ff65cc483f2b03ea7e84c21e7a6c.zip |
Fixes from Craig.
svn path=/trunk/; revision=1670
Diffstat (limited to 'rcfile_y.y')
-rw-r--r-- | rcfile_y.y | 13 |
1 files changed, 7 insertions, 6 deletions
@@ -45,10 +45,6 @@ static struct query current; /* current server record */ static int prc_errflag; static struct hostdata *leadentry; static flag trailer; -#if NET_SECURITY -static struct net_security_operation request[NET_SECURITY_OPERATION_MAX]; -static int requestlen = NET_SECURITY_OPERATION_MAX; -#endif /* NET_SECURITY */ static void record_current(); static void user_reset(); @@ -173,10 +169,15 @@ serv_option : AKA alias_list | QVIRTUAL STRING {current.server.qvirtual=xstrdup($2);} | NETSEC STRING { #ifdef NET_SECURITY - if (net_security_strtorequest($2, request, &requestlen)) + void *request; + int requestlen; + + if (net_security_strtorequest($2, &request, &requestlen)) yyerror("invalid security request"); - else + else { current.server.netsec = xstrdup($2); + free(request); + } #else yyerror("network-security support disabled") #endif /* NET_SECURITY */ |