diff options
author | Günther Deschner <gd@samba.org> | 2015-07-01 17:14:10 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-07-02 02:05:37 +0200 |
commit | ddc4c6767a98bb087bb435ed3a4591e75637b1e8 (patch) | |
tree | 45e2bb16d08cdef2d91088062f4f50481318e861 /librpc/rpc | |
parent | 20075e6b3082939fbd5d7ca4f327d29d62c33c87 (diff) | |
download | samba-ddc4c6767a98bb087bb435ed3a4591e75637b1e8.tar.gz |
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
Diffstat (limited to 'librpc/rpc')
-rw-r--r-- | librpc/rpc/binding.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/librpc/rpc/binding.c b/librpc/rpc/binding.c index 37e0c4f54f6..f131d00a88c 100644 --- a/librpc/rpc/binding.c +++ b/librpc/rpc/binding.c @@ -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; } } |