]> granicus.if.org Git - musl/commitdiff
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 a42d1456e2a6ada5cc131cdb17769f73ba641ef7..c4fd34efb0ad4883133573dc090b1b7692f5b012 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"