From c1b71c4e7b4575d6a5b00214bc42a682fc7286eb Mon Sep 17 00:00:00 2001 From: Andrew Deason Date: Tue, 7 Dec 2010 16:04:11 -0600 Subject: [PATCH] auth: Move to a named constant Add a #define for "" and related values. Use them. Change-Id: I0e1d374403a0ad20be6a2839e37a5894b15446cd Reviewed-on: http://gerrit.openafs.org/3482 Reviewed-by: Simon Wilkinson Tested-by: BuildBot Reviewed-by: Derrick Brashear --- src/auth/userok.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/auth/userok.c b/src/auth/userok.c index f9e9c9371..52dd467aa 100644 --- a/src/auth/userok.c +++ b/src/auth/userok.c @@ -48,6 +48,9 @@ #include "keys.h" #include "afs/audit.h" +#define AFS_NOAUTH_NAME "" +#define AFS_NOAUTH_LEN (sizeof(AFS_NOAUTH_NAME)-1) + static int ParseLine(char *buffer, struct rx_identity *user); static void @@ -744,7 +747,8 @@ afsconf_SuperIdentity(struct afsconf_dir *adir, struct rx_call *acall, if (afsconf_GetNoAuthFlag(adir)) { if (identity) - *identity = rx_identity_new(RX_ID_KRB4, "", "", 8); + *identity = rx_identity_new(RX_ID_KRB4, AFS_NOAUTH_NAME, + AFS_NOAUTH_NAME, AFS_NOAUTH_LEN); UNLOCK_GLOBAL_MUTEX; return 1; } -- 2.39.5