projects
/
oweals
/
musl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d49c22
)
fix incorrect protocol name and number for egp
author
Andrew Kelley
<superjoe30@gmail.com>
Wed, 4 May 2016 20:29:11 +0000
(13:29 -0700)
committer
Rich Felker
<dalias@aerifal.cx>
Wed, 4 May 2016 21:24:28 +0000
(17:24 -0400)
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".
src/network/proto.c
patch
|
blob
|
history
diff --git
a/src/network/proto.c
b/src/network/proto.c
index a42d1456e2a6ada5cc131cdb17769f73ba641ef7..c4fd34efb0ad4883133573dc090b1b7692f5b012 100644
(file)
--- 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"
- "\0
08
egp\0"
+ "\0
10
egp\0"
"\014pup\0"
"\021udp\0"
"\024hmp\0"