diff options
author | Guy Harris <guy@alum.mit.edu> | 2002-02-27 00:26:29 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2002-02-27 00:26:29 +0000 |
commit | c1333b796461d352cf3b3072bb6d8e7262aa1700 (patch) | |
tree | c864711ed518672ba8857765014a8f3d80f296fc | |
parent | 92374ed00b73a6e5a6301682ebacddd6e012931c (diff) | |
download | wireshark-c1333b796461d352cf3b3072bb6d8e7262aa1700.tar.gz wireshark-c1333b796461d352cf3b3072bb6d8e7262aa1700.tar.bz2 wireshark-c1333b796461d352cf3b3072bb6d8e7262aa1700.zip |
Fix "create_dissector_handle()" to properly create a handle for an
old-style dissector.
svn path=/trunk/; revision=4816
-rw-r--r-- | epan/packet.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/epan/packet.c b/epan/packet.c index 865cebe4ef..f3bfbf1bab 100644 --- a/epan/packet.c +++ b/epan/packet.c @@ -1,7 +1,7 @@ /* packet.c * Routines for packet disassembly * - * $Id: packet.c,v 1.63 2002/02/26 11:55:39 guy Exp $ + * $Id: packet.c,v 1.64 2002/02/27 00:26:29 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@ethereal.com> @@ -983,7 +983,8 @@ create_dissector_handle(dissector_t dissector, int proto) handle = g_malloc(sizeof (struct dissector_handle)); handle->name = NULL; - handle->dissector = dissector; + handle->is_new = FALSE; + handle->dissector.old = dissector; handle->proto_index = proto; return handle; |