mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
Windows: misplaced brace in KFW_AFS_get_cred
A misplaced brace in KFW_AFS_get_cred() results in KFW_AFS_klog() being executed twice in a row if successful. The second attempt could fail due to a KRB5KRB_AP_ERR_REPEAT error issued by the KDC. Change-Id: I6364c1e378eeeeec9f66449674c8cd240f029a8a Reviewed-on: http://gerrit.openafs.org/7626 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com> Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
This commit is contained in:
parent
c639b08ebc
commit
d7690835ac
@ -1210,15 +1210,15 @@ KFW_AFS_get_cred( char * username,
|
||||
if ( code ) goto cleanup;
|
||||
|
||||
KFW_AFS_update_princ_ccache_data(context, cc, FALSE);
|
||||
}
|
||||
|
||||
code = KFW_AFS_klog(context, cc, "afs", cell, realm, lifetime, smbname);
|
||||
if ( IsDebuggerPresent() ) {
|
||||
char message[256];
|
||||
StringCbPrintf(message, sizeof(message), "KFW_AFS_klog() returns: %d\n", code);
|
||||
OutputDebugString(message);
|
||||
code = KFW_AFS_klog(context, cc, "afs", cell, realm, lifetime, smbname);
|
||||
if ( IsDebuggerPresent() ) {
|
||||
char message[256];
|
||||
StringCbPrintf(message, sizeof(message), "KFW_AFS_klog() returns: %d\n", code);
|
||||
OutputDebugString(message);
|
||||
}
|
||||
if ( code ) goto cleanup;
|
||||
}
|
||||
if ( code ) goto cleanup;
|
||||
|
||||
KFW_AFS_update_cell_princ_map(context, cell, pname, TRUE);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user