OSDN Git Service

resolv.c fails for /etc/hosts lookups
authorPhilip Nye <philipn@engarts.com>
Fri, 19 Nov 2010 16:50:35 +0000 (16:50 +0000)
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Tue, 23 Nov 2010 10:25:06 +0000 (11:25 +0100)
commitc2acd989048e58dcde5c5088211b0a0e40fc0f76
treea60155deac2d7854489b600b4a68aeb00f39de70
parent22bf234a7119559901adfedc9991876af01eb64c
resolv.c fails for /etc/hosts lookups

Patch attached:

Fix a bug in offset calculations when parsing /etc/hosts in resolv.c.

Formerly a miscalculation meant that having found the correct line, the code
was trashing its own result data.

Signed-off-by: Philip Nye <philipn@engarts.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
libc/inet/resolv.c