]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-windows-afskfw-20051130
authorJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 30 Nov 2005 06:40:53 +0000 (06:40 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Wed, 30 Nov 2005 06:40:53 +0000 (06:40 +0000)
correct the construction of the client name (with realm) when krb524
is being used.

(cherry picked from commit eeee5a9e14a693538a62565483db8f1b3d46cc99)

src/WINNT/afsd/afskfw.c

index 3a59dfe558aa70d7cdea7b1eaf696e579030c41e..9139b0c0c3da76b08cf7b9a480816e6055977c54 100644 (file)
@@ -3073,11 +3073,8 @@ KFW_AFS_klog(
     }
     strcpy(aclient.instance, "");
 
-    if ( strcmp(realm_of_cell, creds.realm) ) 
-    {
-        strncat(aclient.name, "@", MAXKTCNAMELEN - 1);
-        strncpy(aclient.name, creds.realm, MAXKTCREALMLEN - 1);
-    }
+    strncat(aclient.name, "@", MAXKTCNAMELEN - 1);
+    strncat(aclient.name, creds.realm, MAXKTCREALMLEN - 1);
     aclient.name[MAXKTCREALMLEN-1] = '\0';
 
     strcpy(aclient.cell, CellName);