Windows: correct use of krb5_init_context in aklog

A zero return code is success.  Apply ! to obtain proper
conditional test.

Change-Id: Idd60fd2476a36ec36f7b5e250e9f8b8531c80611
Reviewed-on: http://gerrit.openafs.org/5570
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
This commit is contained in:
Jeffrey Altman 2011-10-07 11:23:57 -04:00 committed by Jeffrey Altman
parent a453f21521
commit bd1fbd8f4c

View File

@ -221,7 +221,7 @@ redirect_errors(const char *who, afs_int32 code, const char *fmt, va_list ap)
int freestr = 0;
char *str = (char *)afs_error_message(code);
if (strncmp(str, "unknown", strlen(str)) == 0) {
if (krb5_init_context(&context))
if (!krb5_init_context(&context))
{
str = krb5_get_error_message(NULL, code);
freestr = 1;