=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/servconf.c,v retrieving revision 1.254 retrieving revision 1.255 diff -u -r1.254 -r1.255 --- src/usr.bin/ssh/servconf.c 2014/10/24 02:01:20 1.254 +++ src/usr.bin/ssh/servconf.c 2014/11/24 03:39:22 1.255 @@ -1,5 +1,5 @@ -/* $OpenBSD: servconf.c,v 1.254 2014/10/24 02:01:20 lteo Exp $ */ +/* $OpenBSD: servconf.c,v 1.255 2014/11/24 03:39:22 jsg Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen , Espoo, Finland * All rights reserved @@ -1564,6 +1564,9 @@ return 0; case sAuthorizedKeysCommand: + if (cp == NULL) + fatal("%.200s line %d: Missing argument.", filename, + linenum); len = strspn(cp, WHITESPACE); if (*activep && options->authorized_keys_command == NULL) { if (cp[len] != '/' && strcasecmp(cp + len, "none") != 0) @@ -1578,6 +1581,9 @@ charptr = &options->authorized_keys_command_user; arg = strdelim(&cp); + if (!arg || *arg == '\0') + fatal("%s line %d: missing AuthorizedKeysCommandUser " + "argument.", filename, linenum); if (*activep && *charptr == NULL) *charptr = xstrdup(arg); break;