The userrealm string in KFW_AFS_get_cred() should not include
the '@' symbol from the user principal. Including the '@' produces
an invalid realm name.
Change-Id: I5887ffabce93666bdbe231eaac0821573162a6ba
Reviewed-on: http://gerrit.openafs.org/5110
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
while ( dot = strchr(pname,'.') ) {
*dot = '/';
}
- *userrealm++ = '@';
+ *userrealm = '@';
}
+ userrealm++;
} else {
size_t len = strlen(username) + strlen(realm) + 2;
pname = malloc(len);
OutputDebugString(realm);
OutputDebugString("\n");
OutputDebugString("Realm of User: ");
- OutputDebugString(userrealm);
+ OutputDebugString(userrealm?userrealm:"<NULL>");
OutputDebugString("\n");
}