mirror of
https://github.com/NLnetLabs/unbound.git
synced 2026-09-03 08:29:03 +02:00
nicer layout.
git-svn-id: file:///svn/unbound/trunk@4315 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
+2
-2
@@ -1693,8 +1693,8 @@ int sldns_str2wire_wks_buf(const char* str, uint8_t* rd, size_t* len)
|
||||
struct protoent *p = getprotobyname(token);
|
||||
have_proto = 1;
|
||||
if(p) rd[0] = (uint8_t)p->p_proto;
|
||||
else if(!p && strcasecmp(token, "tcp")==0) rd[0]=6;
|
||||
else if(!p && strcasecmp(token, "udp")==0) rd[0]=17;
|
||||
else if(strcasecmp(token, "tcp")==0) rd[0]=6;
|
||||
else if(strcasecmp(token, "udp")==0) rd[0]=17;
|
||||
else rd[0] = (uint8_t)atoi(token);
|
||||
(void)strlcpy(proto_str, token, sizeof(proto_str));
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user