Skip to content

Commit

Permalink
Fix ignored dn_expand error
Browse files Browse the repository at this point in the history
  • Loading branch information
NickSampanis committed Oct 17, 2014
1 parent 535f984 commit cb7b202
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 cb7b202

Please sign in to comment.