mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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:
parent
3d2b8aec7c
commit
33154874bf
@ -617,7 +617,7 @@ cleanup:
|
|||||||
krb5_free_keyblock_contents(context, &kb);
|
krb5_free_keyblock_contents(context, &kb);
|
||||||
krb5_free_context(context);
|
krb5_free_context(context);
|
||||||
rxi_Free(buf, allocsiz);
|
rxi_Free(buf, allocsiz);
|
||||||
if ((code && 0xFFFFFF00) == ERROR_TABLE_BASE_asn1)
|
if ((code & 0xFFFFFF00) == ERROR_TABLE_BASE_asn1)
|
||||||
return RXKADINCONSISTENCY;
|
return RXKADINCONSISTENCY;
|
||||||
return code;
|
return code;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user