]> andersk Git - openssh.git/commitdiff
- OpenBSD CVS Sync
authordjm <djm>
Tue, 13 Mar 2001 23:15:20 +0000 (23:15 +0000)
committerdjm <djm>
Tue, 13 Mar 2001 23:15:20 +0000 (23:15 +0000)
  - markus@cvs.openbsd.org 2001/03/13 17:34:42
    [auth-options.c]
    missing xfree, deny key on parse error; ok stevesk@

ChangeLog
auth-options.c

index 9d894f79726378e01d97cb241ca9061bec8cdd5f..1390c885bd9a831f6827a90e07c7b90847d73227 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
index 57e335f3f19ca4fc495a20c95d1c1a071caddc1f..bfb1af86b32bb957a1038c78fc8a3c67c7f8d607 100644 (file)
@@ -10,7 +10,7 @@
  */
 
 #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"
@@ -118,7 +118,9 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
                                    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);
@@ -148,7 +150,8 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
                                    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);
@@ -185,7 +188,8 @@ auth_parse_options(struct passwd *pw, char *opts, char *file, u_long linenum)
                                    file, linenum);
                                packet_send_debug("%.100s, line %lu: missing end quote",
                                    file, linenum);
-                               continue;
+                               xfree(patterns);
+                               goto bad_option;
                        }
                        patterns[i] = 0;
                        opts++;
This page took 0.046827 seconds and 5 git commands to generate.