ntlmssp: fix compilation with -O2 -fno-inline
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 21 Dec 2016 00:24:46 +0000 (13:24 +1300)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 10 Feb 2017 04:09:09 +0000 (05:09 +0100)
commit3ee56607db8b4fedd5d04f74de548ae7324686cd
tree0ee0a219c3ea511a87af4cf881603f540ee56ed2
parent2ad69f4bd0f724296a40347a140a031f6ab341e9
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>
auth/ntlmssp/ntlmssp.c