diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-09-26 14:32:17 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2018-09-26 14:32:17 +0200 |
commit | 311e3b51c6b1bde2f58968453de56a5ca2a6dbb4 (patch) | |
tree | 126a2f4067c6dae52ca0a39a946680c1dff42329 /sys/src/cmd/ip/dhcpd/dhcpd.c | |
parent | f18e8dfde88d00a19a184604865aa4d6383b16f5 (diff) |
libc: return number of bytes produced for idn2utf() and utf2idn()
Diffstat (limited to 'sys/src/cmd/ip/dhcpd/dhcpd.c')
-rw-r--r-- | sys/src/cmd/ip/dhcpd/dhcpd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/src/cmd/ip/dhcpd/dhcpd.c b/sys/src/cmd/ip/dhcpd/dhcpd.c index d468c8190..df7a0d2b8 100644 --- a/sys/src/cmd/ip/dhcpd/dhcpd.c +++ b/sys/src/cmd/ip/dhcpd/dhcpd.c @@ -1591,7 +1591,7 @@ dnsnamesopt(Req *rp, int t, char *attr, Ndbtuple *nt) for(; nt != nil; nt = nt->entry){ if(strcmp(nt->attr, attr) != 0) continue; - if(utf2idn(nt->val, val, sizeof(val)) == nil) + if(utf2idn(nt->val, val, sizeof(val)) <= 0) continue; d = &rp->p[2]; for(s = val; *s != 0; s++){ |