aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2003-10-14 00:45:54 +0000
committerGuy Harris <guy@alum.mit.edu>2003-10-14 00:45:54 +0000
commita5287eb7d215aad35c74fe61b9b93bf9fb2c5591 (patch)
treebf891f9b5a4bf57e61a0e8e21c6f355d525c82ac
parente8e73d6cafa0caeb46895b7f0f0194a9c282ff89 (diff)
"dce_try_handoff()" isn't necessarily passed a non-null "auth_info"
argument - don't dereference it if it's null. svn path=/trunk/; revision=8685
-rw-r--r--packet-dcerpc.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/packet-dcerpc.c b/packet-dcerpc.c
index 34d8dd6f48..971d3324e4 100644
--- a/packet-dcerpc.c
+++ b/packet-dcerpc.c
@@ -3,7 +3,7 @@
* Copyright 2001, Todd Sabin <tas@webspan.net>
* Copyright 2003, Tim Potter <tpot@samba.org>
*
- * $Id: packet-dcerpc.c,v 1.144 2003/10/10 11:11:37 sahlberg Exp $
+ * $Id: packet-dcerpc.c,v 1.145 2003/10/14 00:45:54 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -1821,10 +1821,12 @@ dcerpc_try_handoff (packet_info *pinfo, proto_tree *tree,
sub_dissect = info->request ? proc->dissect_rqst : proc->dissect_resp;
- /* Call subdissector if we have a zero auth_level and no decrypted data,
- or non-zero auth_level and sucessfully decrypted data. */
+ /* Call subdissector if we have no auth info, or a zero auth_level and
+ no decrypted data, or non-zero auth_level and sucessfully decrypted
+ data. */
- if (sub_dissect && ((!auth_info->auth_level && !pinfo->decrypted_data) ||
+ if (sub_dissect && (auth_info == NULL ||
+ (!auth_info->auth_level && !pinfo->decrypted_data) ||
(auth_info->auth_level && pinfo->decrypted_data))) {
saved_proto = pinfo->current_proto;
saved_private_data = pinfo->private_data;