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>
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;