aboutsummaryrefslogtreecommitdiffstats
path: root/packet-telnet.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2002-10-25 21:13:38 +0000
committerGuy Harris <guy@alum.mit.edu>2002-10-25 21:13:38 +0000
commita9b42ee36c93a427e0892ef9bd88e806fc47183f (patch)
tree9a92f08cc241ce06d5ddb10213960da22b31082f /packet-telnet.c
parentbf3b1dbd6917a02fc97daf64adb84f1deca507ff (diff)
downloadwireshark-a9b42ee36c93a427e0892ef9bd88e806fc47183f.tar.gz
wireshark-a9b42ee36c93a427e0892ef9bd88e806fc47183f.tar.bz2
wireshark-a9b42ee36c93a427e0892ef9bd88e806fc47183f.zip
That was a rather unique interpretation of "correctly" I came up with
there. Try a different interpretation. svn path=/trunk/; revision=6508
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 6c44d58755..ba97b50155 100644
--- a/packet-telnet.c
+++ b/packet-telnet.c
@@ -2,7 +2,7 @@
* Routines for telnet packet dissection
* Copyright 1999, Richard Sharpe <rsharpe@ns.aus.com>
*
- * $Id: packet-telnet.c,v 1.33 2002/10/25 21:09:36 guy Exp $
+ * $Id: packet-telnet.c,v 1.34 2002/10/25 21:13:38 guy Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -138,7 +138,7 @@ telnet_sub_option(proto_tree *telnet_tree, tvbuff_t *tvb, int start_offset)
/* Search for an IAC. */
len = tvb_length_remaining(tvb, offset);
iac_offset = tvb_find_guint8(tvb, offset, len, TN_IAC);
- if (offset == -1) {
+ if (iac_offset == -1) {
/* None found - run to the end of the packet. */
offset += len;
} else