diff options
author | Simo Sorce <simo@redhat.com> | 2014-04-12 17:25:19 -0400 |
---|---|---|
committer | Simo Sorce <simo@redhat.com> | 2014-04-12 21:57:06 -0400 |
commit | 614ac7a00ec0f1ee21cf630aae42e9b767ebca89 (patch) | |
tree | cbdb1f74ca5a1b3bbb00de6d80d5f72eb639ea80 /src | |
parent | 4f59b28f16b965de715c1f5d38e65a36b0d4573c (diff) | |
download | gss-ntlmssp-614ac7a00ec0f1ee21cf630aae42e9b767ebca89.tar.gz gss-ntlmssp-614ac7a00ec0f1ee21cf630aae42e9b767ebca89.tar.xz gss-ntlmssp-614ac7a00ec0f1ee21cf630aae42e9b767ebca89.zip |
Return Client name if requested
Diffstat (limited to 'src')
-rw-r--r-- | src/gss_sec_ctx.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gss_sec_ctx.c b/src/gss_sec_ctx.c index d55e9c6..84f3fff 100644 --- a/src/gss_sec_ctx.c +++ b/src/gss_sec_ctx.c @@ -1134,6 +1134,15 @@ uint32_t gssntlm_accept_sec_context(uint32_t *minor_status, } } + if (src_name) { + retmaj = gssntlm_duplicate_name(&retmin, + (gss_name_t)&ctx->source_name, + src_name); + if (retmaj) { + goto done; + } + } + ctx->stage = NTLMSSP_STAGE_DONE; ctx->expiration_time = time(NULL) + MAX_CHALRESP_LIFETIME; ctx->established = true; |