aboutsummaryrefslogtreecommitdiffstats
path: root/packet-postgresql.c
diff options
context:
space:
mode:
authorjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-17 10:03:47 +0000
committerjmayer <jmayer@f5534014-38df-0310-8fa8-9805f1628bb7>2004-02-17 10:03:47 +0000
commit2347afaedf3a9e02406eec3330c711da9710c6ea (patch)
treed0bfd0953dea30727ae25f8827826d91db64a8d2 /packet-postgresql.c
parent067b45fa11989bca8584e99890e5226725340578 (diff)
Bytes should be read with tvb_get_guint8 instead of _ntohs (spotted by Ulf Lamping)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@10076 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'packet-postgresql.c')
-rw-r--r--packet-postgresql.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet-postgresql.c b/packet-postgresql.c
index 4b542eb861..f3ba73eb4a 100644
--- a/packet-postgresql.c
+++ b/packet-postgresql.c
@@ -3,7 +3,7 @@
*
* Copyright 2004, Edwin Calo <calo@fusemail.com>
*
- * $Id: packet-postgresql.c,v 1.1 2004/02/16 13:30:05 jmayer Exp $
+ * $Id: packet-postgresql.c,v 1.2 2004/02/17 10:03:47 jmayer Exp $
*
* Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@ethereal.com>
@@ -82,7 +82,7 @@ dissect_postgresql (tvbuff_t * tvb, packet_info * pinfo, proto_tree * tree)
flag=0;
while ( buff_remaining > 1 )
{
- bitone = tvb_get_ntohs (tvb, offset);
+ bitone = tvb_get_guint8 (tvb, offset);
offset += 1;
if(bitone > 0x7f || (bitone > 0x0 && bitone < 0x20) )