From bd1fbd8f4c0696a73e6211ded89e8c1105db1bfe Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 7 Oct 2011 11:23:57 -0400 Subject: [PATCH] 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 Tested-by: Jeffrey Altman --- src/WINNT/aklog/aklog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/WINNT/aklog/aklog.c b/src/WINNT/aklog/aklog.c index 80559f67ca..9044899b0f 100644 --- a/src/WINNT/aklog/aklog.c +++ b/src/WINNT/aklog/aklog.c @@ -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;