From 2347afaedf3a9e02406eec3330c711da9710c6ea Mon Sep 17 00:00:00 2001 From: jmayer Date: Tue, 17 Feb 2004 10:03:47 +0000 Subject: 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 --- packet-postgresql.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packet-postgresql.c') 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 * - * $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 @@ -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) ) -- cgit v1.2.3