]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
Windows: correct use of krb5_init_context in aklog
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 7 Oct 2011 15:23:57 +0000 (11:23 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Sun, 9 Oct 2011 14:40:16 +0000 (07:40 -0700)
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>
src/WINNT/aklog/aklog.c

index 80559f67caa4e39e33464b693f5d44b74523d423..9044899b0f1f103e20732ea2a847048dd95fd0cd 100644 (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;