tkt_MakeTicket5: Use correct bitmask operator
authorChaskiel Grundman <cg2v@andrew.cmu.edu>
Fri, 20 Sep 2013 20:47:33 +0000 (16:47 -0400)
committerDerrick Brashear <shadow@your-file-system.com>
Mon, 23 Sep 2013 02:13:55 +0000 (19:13 -0700)
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>

src/rxkad/ticket5.c

index f875cd0..5a53163 100644 (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;
 }