diff options
author | Andrew Kelley <superjoe30@gmail.com> | 2016-05-04 13:29:11 -0700 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2016-05-04 17:24:28 -0400 |
commit | 4b619e5c61d7d4cf344b355be8b1acb0f0795ea9 (patch) | |
tree | beb2a7b962c4abf37d8169fac64fc9f401d0cbb4 /src | |
parent | 2d49c2243fbe3322961e6f0a052cc3a28acd1fe2 (diff) | |
download | musl-4b619e5c61d7d4cf344b355be8b1acb0f0795ea9.tar.gz musl-4b619e5c61d7d4cf344b355be8b1acb0f0795ea9.tar.xz musl-4b619e5c61d7d4cf344b355be8b1acb0f0795ea9.zip |
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')
-rw-r--r-- | src/network/proto.c | 2 |
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" |