1
0
Эх сурвалжийг харах

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".
Andrew Kelley 8 жил өмнө
parent
commit
4b619e5c61
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/network/proto.c

+ 1 - 1
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"