diff options
author | Guy Harris <guy@alum.mit.edu> | 2012-07-18 22:57:04 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2012-07-18 22:57:04 +0000 |
commit | 87ad190d492ac3228a51e7428c68fcaedd2618f4 (patch) | |
tree | a0535af3f7b327ef3bad070c2c80801cc30d529f | |
parent | b459c468a3a583428772ce96e00f503893ef4e73 (diff) | |
download | wireshark-87ad190d492ac3228a51e7428c68fcaedd2618f4.tar.gz |
exit() must not be used in dissectors. Use REPORT_DISSECTOR_BUG() and
just return NULL instead.
svn path=/trunk/; revision=43797
-rw-r--r-- | epan/dissectors/packet-rlc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-rlc.c b/epan/dissectors/packet-rlc.c index d4cb740620..df6527e80a 100644 --- a/epan/dissectors/packet-rlc.c +++ b/epan/dissectors/packet-rlc.c @@ -849,8 +849,8 @@ add_fragment(enum rlc_mode mode, tvbuff_t *tvb, packet_info *pinfo, endlist = se_new(struct rlc_seqlist); ch = rlc_channel_create(mode, pinfo); if (ch == NULL) { /* DEBUG */ - g_print("failed to assign channel\n"); - exit(0); + REPORT_DISSECTOR_BUG("Failed to assign channel"); + return NULL; } endlist->list = NULL; |