summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2001-03-14 10:15:20 +1100
committerDamien Miller <djm@mindrot.org>2001-03-14 10:15:20 +1100
commit056ddf7af3504a688c34f2daf50bcd20abfef3ba (patch)
treed206ad4ed6b334ded27193320c4ff2a1ed0ddb01
parentcfccef96a35cb954023a31f9bc10cf3b8f9f8ed3 (diff)
- 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@
-rw-r--r--ChangeLog8
-rw-r--r--auth-options.c12
2 files changed, 15 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 033e483c7..13e1f3606 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
120010314
2 - OpenBSD CVS Sync
3 - markus@cvs.openbsd.org 2001/03/13 17:34:42
4 [auth-options.c]
5 missing xfree, deny key on parse error; ok stevesk@
6
120010313 720010313
2 - OpenBSD CVS Sync 8 - OpenBSD CVS Sync
3 - markus@cvs.openbsd.org 2001/03/12 22:02:02 9 - markus@cvs.openbsd.org 2001/03/12 22:02:02
@@ -4531,4 +4537,4 @@
4531 - Wrote replacements for strlcpy and mkdtemp 4537 - Wrote replacements for strlcpy and mkdtemp
4532 - Released 1.0pre1 4538 - Released 1.0pre1
4533 4539
4534$Id: ChangeLog,v 1.951 2001/03/13 04:57:58 mouring Exp $ 4540$Id: ChangeLog,v 1.952 2001/03/13 23:15:20 djm Exp $
diff --git a/auth-options.c b/auth-options.c
index 57e335f3f..bfb1af86b 100644
--- a/auth-options.c
+++ b/auth-options.c
@@ -10,7 +10,7 @@
10 */ 10 */
11 11
12#include "includes.h" 12#include "includes.h"
13RCSID("$OpenBSD: auth-options.c,v 1.13 2001/02/09 13:38:07 markus Exp $"); 13RCSID("$OpenBSD: auth-options.c,v 1.14 2001/03/13 17:34:42 markus Exp $");
14 14
15#include "packet.h" 15#include "packet.h"
16#include "xmalloc.h" 16#include "xmalloc.h"
@@ -118,7 +118,9 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
118 file, linenum); 118 file, linenum);
119 packet_send_debug("%.100s, line %lu: missing end quote", 119 packet_send_debug("%.100s, line %lu: missing end quote",
120 file, linenum); 120 file, linenum);
121 continue; 121 xfree(forced_command);
122 forced_command = NULL;
123 goto bad_option;
122 } 124 }
123 forced_command[i] = 0; 125 forced_command[i] = 0;
124 packet_send_debug("Forced command: %.900s", forced_command); 126 packet_send_debug("Forced command: %.900s", forced_command);
@@ -148,7 +150,8 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
148 file, linenum); 150 file, linenum);
149 packet_send_debug("%.100s, line %lu: missing end quote", 151 packet_send_debug("%.100s, line %lu: missing end quote",
150 file, linenum); 152 file, linenum);
151 continue; 153 xfree(s);
154 goto bad_option;
152 } 155 }
153 s[i] = 0; 156 s[i] = 0;
154 packet_send_debug("Adding to environment: %.900s", s); 157 packet_send_debug("Adding to environment: %.900s", s);
@@ -185,7 +188,8 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
185 file, linenum); 188 file, linenum);
186 packet_send_debug("%.100s, line %lu: missing end quote", 189 packet_send_debug("%.100s, line %lu: missing end quote",
187 file, linenum); 190 file, linenum);
188 continue; 191 xfree(patterns);
192 goto bad_option;
189 } 193 }
190 patterns[i] = 0; 194 patterns[i] = 0;
191 opts++; 195 opts++;