Skip to content

Commit

Permalink
Merge pull request #604 from NickSampanis/604
Browse files Browse the repository at this point in the history
Fix ignored dn_expand error
  • Loading branch information
LocutusOfBorg committed Dec 16, 2014
2 parents 71bd7bf + cb7b202 commit bdeae7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plug-ins/mdns_spoof/mdns_spoof.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,8 @@ static int parse_line (const char *str, int line, int *type_p, char **ip_p, u_in
for (x = 0; x < mdns->questions; x++) {

name_len = dn_expand((u_char*)mdns, end, q, name, sizeof(name));

if (name_len == -1)
return;
q = data + name_len;

if (q >= end || name_len == 0)
Expand Down

0 comments on commit bdeae7f

Please sign in to comment.