summaryrefslogtreecommitdiff
path: root/src/network/proto.c
diff options
context:
space:
mode:
authorAndrew Kelley <superjoe30@gmail.com>2016-05-04 13:29:11 -0700
committerRich Felker <dalias@aerifal.cx>2016-05-04 17:24:28 -0400
commit4b619e5c61d7d4cf344b355be8b1acb0f0795ea9 (patch)
treebeb2a7b962c4abf37d8169fac64fc9f401d0cbb4 /src/network/proto.c
parent2d49c2243fbe3322961e6f0a052cc3a28acd1fe2 (diff)
downloadmusl-4b619e5c61d7d4cf344b355be8b1acb0f0795ea9.tar.gz
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".
Diffstat (limited to 'src/network/proto.c')
-rw-r--r--src/network/proto.c2
1 files changed, 1 insertions, 1 deletions
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"