Blame openssh-6.6.1p1-servconf-parser.patch
|
Petr Lautrbach |
4b2496 |
diff --git a/servconf.c b/servconf.c
|
|
Petr Lautrbach |
4b2496 |
index b7f3294..bc1e909 100644
|
|
Petr Lautrbach |
4b2496 |
--- a/servconf.c
|
|
Petr Lautrbach |
4b2496 |
+++ b/servconf.c
|
|
Petr Lautrbach |
4b2496 |
@@ -1550,7 +1550,7 @@ process_server_config_line(ServerOptions *options, char *line,
|
|
Petr Lautrbach |
4b2496 |
break;
|
|
Petr Lautrbach |
4b2496 |
|
|
Petr Lautrbach |
4b2496 |
case sForceCommand:
|
|
Petr Lautrbach |
4b2496 |
- if (cp == NULL)
|
|
Petr Lautrbach |
4b2496 |
+ if (cp == NULL || *cp == '\0')
|
|
Petr Lautrbach |
4b2496 |
fatal("%.200s line %d: Missing argument.", filename,
|
|
Petr Lautrbach |
4b2496 |
linenum);
|
|
Petr Lautrbach |
4b2496 |
len = strspn(cp, WHITESPACE);
|
|
Petr Lautrbach |
4b2496 |
@@ -1595,7 +1595,7 @@ process_server_config_line(ServerOptions *options, char *line,
|
|
Petr Lautrbach |
4b2496 |
break;
|
|
Petr Lautrbach |
4b2496 |
|
|
Petr Lautrbach |
4b2496 |
case sVersionAddendum:
|
|
Petr Lautrbach |
4b2496 |
- if (cp == NULL)
|
|
Petr Lautrbach |
4b2496 |
+ if (cp == NULL || *cp == '\0')
|
|
Petr Lautrbach |
4b2496 |
fatal("%.200s line %d: Missing argument.", filename,
|
|
Petr Lautrbach |
4b2496 |
linenum);
|
|
Petr Lautrbach |
4b2496 |
len = strspn(cp, WHITESPACE);
|
|
Petr Lautrbach |
4b2496 |
@@ -1630,6 +1630,8 @@ process_server_config_line(ServerOptions *options, char *line,
|
|
Petr Lautrbach |
4b2496 |
break;
|
|
Petr Lautrbach |
4b2496 |
|
|
Petr Lautrbach |
4b2496 |
case sAuthenticationMethods:
|
|
Petr Lautrbach |
4b2496 |
+ if (cp == NULL || *cp == '\0')
|
|
Petr Lautrbach |
4b2496 |
+ fatal("%.200s line %d: Missing argument.", filename, linenum);
|
|
Petr Lautrbach |
4b2496 |
if (*activep && options->num_auth_methods == 0) {
|
|
Petr Lautrbach |
4b2496 |
while ((arg = strdelim(&cp)) && *arg != '\0') {
|
|
Petr Lautrbach |
4b2496 |
if (options->num_auth_methods >=
|