fix potential NULL deref

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1592 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1997-04-18 09:01:16 +00:00
parent 32c5588e14
commit 606fcbfa54

View File

@@ -24,7 +24,7 @@ pop_user (POP *p)
} else if (p->auth_level != AUTH_NONE) {
char *s = otp_error(&p->otp_ctx);
return pop_msg(p, POP_FAILURE, "Permission denied%s%s",
s ? ":" : "", s);
s ? ":" : "", s ? s : "");
} else
return pop_msg(p, POP_SUCCESS, "Password required for %s.", p->user);
}