From: Andrew Kelley Date: Wed, 4 May 2016 20:29:11 +0000 (-0700) Subject: fix incorrect protocol name and number for egp X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=4b619e5c61d7d4cf344b355be8b1acb0f0795ea9;p=musl fix incorrect protocol name and number for egp previously if you called getprotobyname("egp") you would get NULL because \008 is invalid octal and so the protocol id was interpreted as 0 and name as "8egp". --- diff --git a/src/network/proto.c b/src/network/proto.c index a42d1456..c4fd34ef 100644 --- a/src/network/proto.c +++ b/src/network/proto.c @@ -12,7 +12,7 @@ static const unsigned char protos[] = { "\004ipencap\0" "\005st\0" "\006tcp\0" - "\008egp\0" + "\010egp\0" "\014pup\0" "\021udp\0" "\024hmp\0"