diff options
author | Guy Harris <guy@alum.mit.edu> | 1999-06-01 20:40:34 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 1999-06-01 20:40:34 +0000 |
commit | 653de14d44ab1dbf4c6a6354eda343ad84baf3c8 (patch) | |
tree | 87cab7b1c70936c985ddecfacaeed74d9ef2cef1 /packet-nbns.c | |
parent | 9bee1b3f205356932dc22c3605fd06ebb48e7b06 (diff) | |
download | wireshark-653de14d44ab1dbf4c6a6354eda343ad84baf3c8.tar.gz wireshark-653de14d44ab1dbf4c6a6354eda343ad84baf3c8.tar.bz2 wireshark-653de14d44ab1dbf4c6a6354eda343ad84baf3c8.zip |
As we may return an error message, rather than a NetBIOS name, from
"get_nbns_name()", make sure the array into which you put the name is
"big enough" - MAXDNAME+4 is more than big enough for those error
messages.
svn path=/trunk/; revision=299
Diffstat (limited to 'packet-nbns.c')
-rw-r--r-- | packet-nbns.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packet-nbns.c b/packet-nbns.c index 6daa0ebe2b..0bf84e3ff8 100644 --- a/packet-nbns.c +++ b/packet-nbns.c @@ -4,7 +4,7 @@ * Gilbert Ramirez <gram@verdict.uthscsa.edu> * Much stuff added by Guy Harris <guy@netapp.com> * - * $Id: packet-nbns.c,v 1.20 1999/05/27 05:35:08 guy Exp $ + * $Id: packet-nbns.c,v 1.21 1999/06/01 20:40:34 guy Exp $ * * Ethereal - Network traffic analyzer * By Gerald Combs <gerald@zing.org> @@ -1017,7 +1017,7 @@ dissect_nbdgm(const u_char *pd, int offset, frame_data *fd, proto_tree *tree, char *yesno[] = { "No", "Yes" }; - char name[32]; + char name[MAXDNAME+4]; int len; header.msg_type = pd[offset]; @@ -1183,7 +1183,7 @@ dissect_nbss_packet(const u_char *pd, int offset, frame_data *fd, proto_tree *tr guint8 flags; guint16 length; int len; - char name[32]; + char name[MAXDNAME+4]; msg_type = pd[offset]; flags = pd[offset + 1]; |