LANforge: fix wrong offset for magic detection

Issue reported by Brent Lovelace https://www.wireshark.org/lists/wireshark-dev/201606/msg00034.html

Change-Id: If296f01747316ddbe28e88d4d11d9df90d68bc5d
Reviewed-on: https://code.wireshark.org/review/15800
Petri-Dish: Alexis La Goutte <alexis.lagoutte@gmail.com>
Reviewed-by: Pascal Quantin <pascal.quantin@gmail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Anders Broman <a.broman58@gmail.com>
This commit is contained in:
Alexis La Goutte 2016-06-10 07:04:44 +02:00 committed by Anders Broman
parent a4afda6d48
commit 777cddd6cb
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ static gboolean dissect_lanforge(tvbuff_t *tvb, packet_info *pinfo, proto_tree *
}
/* check for magic number */
magic = tvb_get_ntohl(tvb,0);
magic = tvb_get_ntohl(tvb, 4);
if(magic != LANFORGE_MAGIC){
/* Not a LANforge packet. */
return FALSE;