+20010314
+ - OpenBSD CVS Sync
+ - markus@cvs.openbsd.org 2001/03/13 17:34:42
+ [auth-options.c]
+ missing xfree, deny key on parse error; ok stevesk@
+
20010313
- OpenBSD CVS Sync
- markus@cvs.openbsd.org 2001/03/12 22:02:02
*/
#include "includes.h"
-RCSID("$OpenBSD: auth-options.c,v 1.13 2001/02/09 13:38:07 markus Exp $");
+RCSID("$OpenBSD: auth-options.c,v 1.14 2001/03/13 17:34:42 markus Exp $");
#include "packet.h"
#include "xmalloc.h"
file, linenum);
packet_send_debug("%.100s, line %lu: missing end quote",
file, linenum);
- continue;
+ xfree(forced_command);
+ forced_command = NULL;
+ goto bad_option;
}
forced_command[i] = 0;
packet_send_debug("Forced command: %.900s", forced_command);
file, linenum);
packet_send_debug("%.100s, line %lu: missing end quote",
file, linenum);
- continue;
+ xfree(s);
+ goto bad_option;
}
s[i] = 0;
packet_send_debug("Adding to environment: %.900s", s);
file, linenum);
packet_send_debug("%.100s, line %lu: missing end quote",
file, linenum);
- continue;
+ xfree(patterns);
+ goto bad_option;
}
patterns[i] = 0;
opts++;