aboutsummaryrefslogtreecommitdiffstats
path: root/asn1/s1ap
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-01-13 18:34:49 +0000
committerBill Meier <wmeier@newsguy.com>2009-01-13 18:34:49 +0000
commit1fd90d2fd8b8d8294b5fa26a08cbc8372fc0f880 (patch)
tree422f310d199ea1d8f32b89a140ba34212e8fa024 /asn1/s1ap
parente8a1e7d84c301ee68a72224ee358b0e8831d99a6 (diff)
Move find_dissector to once-only section of _reg_handoff
svn path=/trunk/; revision=27220
Diffstat (limited to 'asn1/s1ap')
-rw-r--r--asn1/s1ap/packet-s1ap-template.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/asn1/s1ap/packet-s1ap-template.c b/asn1/s1ap/packet-s1ap-template.c
index 01e02d400f..92042cf534 100644
--- a/asn1/s1ap/packet-s1ap-template.c
+++ b/asn1/s1ap/packet-s1ap-template.c
@@ -60,7 +60,7 @@
/* No SCTP port registered with IANA for S1AP yet */
#define SCTP_PORT_S1AP 0
-static dissector_handle_t nas_eps_handle=NULL;
+static dissector_handle_t nas_eps_handle;
#include "packet-s1ap-val.h"
@@ -165,6 +165,7 @@ proto_reg_handoff_s1ap(void)
if (!Initialized) {
s1ap_handle = find_dissector("s1ap");
+ nas_eps_handle = find_dissector("nas-eps");
dissector_add_handle("sctp.port", s1ap_handle); /* for "decode-as" */
Initialized=TRUE;
#include "packet-s1ap-dis-tab.c"
@@ -178,8 +179,6 @@ proto_reg_handoff_s1ap(void)
if (SctpPort != 0) {
dissector_add("sctp.port", SctpPort, s1ap_handle);
}
-
- nas_eps_handle = find_dissector("nas-eps");
}
/*--- proto_register_s1ap -------------------------------------------*/