aboutsummaryrefslogtreecommitdiffstats
path: root/packet-telnet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet-telnet.c')
-rw-r--r--packet-telnet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-telnet.c b/packet-telnet.c
index 63255a8895..a416c94420 100644
--- a/packet-telnet.c
+++ b/packet-telnet.c
@@ -2,7 +2,7 @@
* Routines for Telnet packet dissection; see RFC 854 and RFC 855
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-telnet.c,v 1.44 2004/02/03 18:41:19 guy Exp $
+ * $Id: packet-telnet.c,v 1.45 2004/02/25 09:31:07 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -707,11 +707,11 @@ unescape_and_tvbuffify_telnet_option(packet_info *pinfo, tvbuff_t *tvb, int offs
if(len>=MAX_KRB5_BLOB_LEN)
return NULL;
+ spos=tvb_get_ptr(tvb, offset, len);
/* XXX we never g_free() this one. This is done automagically
when the parent tvb is destroyed?
*/
buf=g_malloc(len);
- spos=tvb_get_ptr(tvb, offset, len);
dpos=buf;
skip=0;
l=len;