summaryrefslogtreecommitdiff
path: root/usr/src/cmd/ssh/sshd/servconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/ssh/sshd/servconf.c')
-rw-r--r--usr/src/cmd/ssh/sshd/servconf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/cmd/ssh/sshd/servconf.c b/usr/src/cmd/ssh/sshd/servconf.c
index 983f0fb5ab..9a66f49216 100644
--- a/usr/src/cmd/ssh/sshd/servconf.c
+++ b/usr/src/cmd/ssh/sshd/servconf.c
@@ -660,7 +660,7 @@ match_cfg_line(char **condition, int line, const char *user, const char *host,
user ? user : "(null)", host ? host : "(null)",
address ? address : "(null)");
- while ((attrib = strdelim(&cp)) && *attrib != '\0') {
+ while ((attrib = strdelim(&cp)) != NULL && *attrib != '\0') {
if ((arg = strdelim(&cp)) == NULL || *arg == '\0') {
error("Missing Match criteria for %s", attrib);
return -1;