dhcp-lease: Fix typo
PATCH 1/1 dhcp-lease: Fix typo
Replace logical AND with OR.
--- ell/dhcp-lease.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ell/dhcp-lease.c +1 -1
@@ -104,7 +104,7 @@ struct l_dhcp_lease *_dhcp_lease_parse_options(struct dhcp_message_iter *iter) }break ;case L_DHCP_OPTION_DOMAIN_NAME : -if (l <1 && l >253 ) +if (l <1 || l >253 ) goto error;/* Disallow embedded NUL bytes. */
Signature · 1 line
2.13.6
Denis Kenzior
AppliedHi Tim,
Quoted 5 lines · Tim Kourt
Replace logical AND with OR.
--- ell/dhcp-lease.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Applied, thanks.
Regards,
-Denis