tkt_MakeTicket5: Use correct bitmask operator

tkt_MakeTicket5 tries to avoid returning heimdal asn1 error codes,
but uses an incorrect expression that's almost always true. Use
bitwise & instead of logical && to fix.

Change-Id: I59bffe8c9b98c6f32b967bc37a7989c98c5720b6
Reviewed-on: http://gerrit.openafs.org/10264
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Reviewed-by: Simon Wilkinson <simonxwilkinson@gmail.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
This commit is contained in:
Chaskiel Grundman 2013-09-20 16:47:33 -04:00 committed by Derrick Brashear
parent 3d2b8aec7c
commit 33154874bf

View File

@ -617,7 +617,7 @@ cleanup:
krb5_free_keyblock_contents(context, &kb);
krb5_free_context(context);
rxi_Free(buf, allocsiz);
if ((code && 0xFFFFFF00) == ERROR_TABLE_BASE_asn1)
if ((code & 0xFFFFFF00) == ERROR_TABLE_BASE_asn1)
return RXKADINCONSISTENCY;
return code;
}