File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change @@ -835,15 +835,19 @@ uint32_t gssntlm_accept_sec_context(uint32_t *minor_status,
835835 goto done ;
836836 }
837837
838- if (((usr_name == NULL ) || (usr_name [0 ] == '\0' )) &&
839- (nt_chal_resp .length == 0 ) &&
840- (((lm_chal_resp .length == 1 ) && (lm_chal_resp .data [0 ] == '\0' )) ||
841- (lm_chal_resp .length == 0 ))) {
842- /* Anonymous auth */
843- /* FIXME: not supported for now */
844- set_GSSERR (ERR_NOTSUPPORTED );
845- goto done ;
846-
838+ if ((usr_name == NULL ) || (usr_name [0 ] == '\0' )) {
839+ if ((nt_chal_resp .length == 0 ) &&
840+ (((lm_chal_resp .length == 1 ) &&
841+ (lm_chal_resp .data [0 ] == '\0' )) ||
842+ (lm_chal_resp .length == 0 ))) {
843+ /* Anonymous auth */
844+ /* FIXME: not supported for now */
845+ set_GSSERR (ERR_NOTSUPPORTED );
846+ goto done ;
847+ } else {
848+ set_GSSERR (ERR_NOUSRFOUND );
849+ goto done ;
850+ }
847851 } else {
848852
849853 char useratdom [1024 ];
You can’t perform that action at this time.
0 commit comments