From ddc4c6767a98bb087bb435ed3a4591e75637b1e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=BCnther=20Deschner?= Date: Wed, 1 Jul 2015 17:14:10 +0200 Subject: librpc: prevent invalid NULL pointer derref in dcerpc_binding_get_auth_info(). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Guenther Signed-off-by: Günther Deschner Reviewed-by: Jeremy Allison Autobuild-User(master): Jeremy Allison Autobuild-Date(master): Thu Jul 2 02:05:38 CEST 2015 on sn-devel-104 --- librpc/rpc/binding.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'librpc') 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; } } -- cgit v1.2.1