vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jakub Jelen 535d34
diff -up openssh/servconf.c.servconf openssh/servconf.c
Jakub Jelen 535d34
--- openssh/servconf.c.servconf	2015-06-24 11:26:26.186527736 +0200
Jakub Jelen 535d34
+++ openssh/servconf.c	2015-06-24 11:26:39.847493075 +0200
Jakub Jelen 535d34
@@ -1815,6 +1815,8 @@ process_server_config_line(ServerOptions
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);
Jakub Jelen 535d34
 		if (options->num_auth_methods == 0) {
Petr Lautrbach 4b2496
 			while ((arg = strdelim(&cp)) && *arg != '\0') {
Petr Lautrbach 4b2496
 				if (options->num_auth_methods >=