Skip to content

Commit 4084b58

Browse files
committed
Fix crash bug when acceptor credentials are NULL
Signed-off-by: Simo Sorce <simo@redhat.com>
1 parent d7d6d82 commit 4084b58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gss_sec_ctx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -640,7 +640,7 @@ uint32_t gssntlm_accept_sec_context(uint32_t *minor_status,
640640
/* Fixme: How do we allow anonymous negotition ? */
641641

642642
/* override neg_flags default if requested */
643-
if (cred->neg_flags) {
643+
if (cred && cred->neg_flags) {
644644
ctx->neg_flags = cred->neg_flags;
645645
}
646646

0 commit comments

Comments
 (0)