aboutsummaryrefslogtreecommitdiffstats
path: root/packet-smb.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-03-29 21:55:05 +0000
committerRonnie Sahlberg <ronnie_sahlberg@ozemail.com.au>2002-03-29 21:55:05 +0000
commit25972db6bb6fe3b5e8e90912b0a8c42861773d28 (patch)
tree900fd2ea292c29111abf57eb249f96c5ed80aa66 /packet-smb.c
parent9ededb6b9923fd448c2e8185de231032a8c9b097 (diff)
copylen should be unsigned when we check the range since tvb_memcpy will be upset if a negative value is passed as len
svn path=/trunk/; revision=5044
Diffstat (limited to 'packet-smb.c')
-rw-r--r--packet-smb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-smb.c b/packet-smb.c
index 86e764531c..16e2636c4b 100644
--- a/packet-smb.c
+++ b/packet-smb.c
@@ -3,7 +3,7 @@
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
* 2001 Rewrite by Ronnie Sahlberg and Guy Harris
*
- * $Id: packet-smb.c,v 1.238 2002/03/27 20:58:43 guy Exp $
+ * $Id: packet-smb.c,v 1.239 2002/03/29 21:55:05 sahlberg Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -12812,7 +12812,7 @@ get_unicode_or_ascii_string(tvbuff_t *tvb, int *offsetp,
const gchar *string;
int string_len;
smb_info_t *si;
- int copylen;
+ unsigned int copylen;
if (*bcp == 0) {
/* Not enough data in buffer */