From 15e2b151689d74efd543488288a22dfa21bcaa2c Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Wed, 30 Oct 2002 23:35:51 +0000 Subject: [PATCH] * chk_trans.c (krb5_check_transited_list): Style nit: check character against '\0' not NULL. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14949 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/chk_trans.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 61704d206..5ed7fe71f 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2002-10-30 Tom Yu + + * chk_trans.c (krb5_check_transited_list): Style nit: check + character against '\0' not NULL. + 2002-10-30 Sam Hartman * chk_trans.c: Ignore trailing null in transited encoding; older diff --git a/src/lib/krb5/krb/chk_trans.c b/src/lib/krb5/krb/chk_trans.c index 2c7e92f13..9997b202f 100644 --- a/src/lib/krb5/krb/chk_trans.c +++ b/src/lib/krb5/krb/chk_trans.c @@ -318,15 +318,15 @@ krb5_error_code krb5_check_transited_list (krb5_context ctx, const krb5_data *trans_in, const krb5_data *crealm, const krb5_data *srealm) { - krb5_data trans; + krb5_data trans; struct check_data cdata; krb5_error_code r; trans.length = trans_in->length; trans.data = (char *) trans_in->data; - if (trans.length&&( trans.data[trans.length-1] == NULL)) + if (trans.length && (trans.data[trans.length-1] == '\0')) trans.length--; - + Tprintf (("krb5_check_transited_list(trans=\"%.*s\", crealm=\"%.*s\", srealm=\"%.*s\")\n", (int) translength, trans.data, (int) crealm->length, crealm->data, -- 2.26.2