mirror of
https://git.openafs.org/openafs.git
synced 2025-01-22 17:00:15 +00:00
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:
parent
a453f21521
commit
bd1fbd8f4c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user