"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "contrib/lease-tools/dhcp_lease_time.c" between
dnsmasq-2.80.tar.gz and dnsmasq-2.81.tar.xz

About: Dnsmasq is a lightweight caching DNS forwarder and DHCP server.

dhcp_lease_time.c  (dnsmasq-2.80):dhcp_lease_time.c  (dnsmasq-2.81.tar.xz)
skipping to change at line 85 skipping to change at line 85
if (p >= end) if (p >= end)
return NULL; /* malformed packet */ return NULL; /* malformed packet */
else if (*p == OPTION_PAD) else if (*p == OPTION_PAD)
p++; p++;
else else
{ {
int opt_len; int opt_len;
if (p >= end - 2) if (p >= end - 2)
return NULL; /* malformed packet */ return NULL; /* malformed packet */
opt_len = option_len(p); opt_len = option_len(p);
if (end - p >= (2 + opt_len)) if (end - p < (2 + opt_len))
return NULL; /* malformed packet */ return NULL; /* malformed packet */
if (*p == opt && opt_len >= minsize) if (*p == opt && opt_len >= minsize)
return p; return p;
p += opt_len + 2; p += opt_len + 2;
} }
} }
return opt == OPTION_END ? p : NULL; return opt == OPTION_END ? p : NULL;
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)