diff options
author | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-03-05 14:40:36 +0000 |
---|---|---|
committer | Stuart Henderson <sthen@cvs.openbsd.org> | 2016-03-05 14:40:36 +0000 |
commit | a7a76137d87f4fe8c33a9bda24805fbbd52f126b (patch) | |
tree | 44c8b68e7372c785777cba35eb0902a5bc0bd4fe /usr.sbin/unbound/sldns/str2wire.c | |
parent | af687625218080f82b0fecdf0819b0233f881cd6 (diff) |
update to unbound 1.5.8, ok florian@ jung@
Diffstat (limited to 'usr.sbin/unbound/sldns/str2wire.c')
-rw-r--r-- | usr.sbin/unbound/sldns/str2wire.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/unbound/sldns/str2wire.c b/usr.sbin/unbound/sldns/str2wire.c index 8cda8c750fb..c54108332d1 100644 --- a/usr.sbin/unbound/sldns/str2wire.c +++ b/usr.sbin/unbound/sldns/str2wire.c @@ -204,7 +204,7 @@ rrinternal_get_owner(sldns_buffer* strbuf, uint8_t* rr, size_t* len, return RET_ERR(LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL, sldns_buffer_position(strbuf)); memmove(rr, tocopy, *dname_len); - } else if(strlen(token) == 0) { + } else if(*token == '\0') { /* no ownername was given, try prev, if that fails * origin, else default to root */ uint8_t* tocopy; @@ -1091,7 +1091,7 @@ int sldns_str2wire_apl_buf(const char* str, uint8_t* rd, size_t* len) uint8_t prefix; size_t i; - if(strlen(my_str) == 0) { + if(*my_str == '\0') { /* empty APL element, no data, no string */ *len = 0; return LDNS_WIREPARSE_ERR_OK; |