mirror of
https://github.com/samba-team/samba.git
synced 2025-02-25 17:57:42 +03:00
ntlmssp: fix compilation with -O2 -fno-inline
Without inlining the function, GCC doesn't know that gensec_ntlmssp->ntlmssp_state->role always has a valid value. With inlining, this is obviously redundant but GCC clearly knows enough to detect this and elide the default case. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
2ad69f4bd0
commit
3ee56607db
@ -107,6 +107,10 @@ static NTSTATUS gensec_ntlmssp_update_find(struct gensec_security *gensec_securi
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
DEBUG(1, ("NTLMSSP state has invalid role %d\n",
|
||||
gensec_ntlmssp->ntlmssp_state->role));
|
||||
return NT_STATUS_INVALID_PARAMETER;
|
||||
}
|
||||
} else {
|
||||
if (!msrpc_parse(gensec_ntlmssp->ntlmssp_state,
|
||||
|
Loading…
x
Reference in New Issue
Block a user