mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
librpc: prevent invalid NULL pointer derref in dcerpc_binding_get_auth_info().
Guenther Signed-off-by: Günther Deschner <gd@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Jul 2 02:05:38 CEST 2015 on sn-devel-104
This commit is contained in:
parent
20075e6b30
commit
ddc4c6767a
@ -596,11 +596,11 @@ _PUBLIC_ void dcerpc_binding_get_auth_info(const struct dcerpc_binding *b,
|
||||
auth_level = DCERPC_AUTH_LEVEL_NONE;
|
||||
}
|
||||
|
||||
if (_auth_type == NULL) {
|
||||
if (_auth_type != NULL) {
|
||||
*_auth_type = auth_type;
|
||||
}
|
||||
|
||||
if (_auth_level == NULL) {
|
||||
if (_auth_level != NULL) {
|
||||
*_auth_level = auth_level;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user