svn rev #23501: branches/anonymous/src/include/
hartmans@MIT.EDU
hartmans at MIT.EDU
Wed Dec 23 16:10:19 EST 2009
http://src.mit.edu/fisheye/changelog/krb5/?cs=23501
Commit By: hartmans
Log Message:
Change krb5_get_ap_tag macro to remove warnings.
Changed Files:
U branches/anonymous/src/include/k5-int.h
Modified: branches/anonymous/src/include/k5-int.h
===================================================================
--- branches/anonymous/src/include/k5-int.h 2009-12-23 21:10:16 UTC (rev 23500)
+++ branches/anonymous/src/include/k5-int.h 2009-12-23 21:10:19 UTC (rev 23501)
@@ -1532,7 +1532,7 @@
/* allow either constructed or primitive encoding, so check for bit 6
set or reset */
#define krb5int_is_app_tag(dat,tag) \
- ((dat) && (dat)->length && \
+ ((dat != NULL) && (dat)->length && \
((((dat)->data[0] & ~0x20) == ((tag) | 0x40))))
#define krb5_is_krb_ticket(dat) krb5int_is_app_tag(dat, 1)
#define krb5_is_krb_authenticator(dat) krb5int_is_app_tag(dat, 2)
More information about the cvs-krb5
mailing list