fix incorrect protocol name and number for egp
authorAndrew Kelley <superjoe30@gmail.com>
Wed, 4 May 2016 20:29:11 +0000 (13:29 -0700)
committerRich 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

index a42d145..c4fd34e 100644 (file)
@@ -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"