From owner-freebsd-commit Fri Mar 24 07:51:46 1995 Return-Path: commit-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA05474 for commit-outgoing; Fri, 24 Mar 1995 07:51:46 -0800 Received: (from majordom@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA05460 for cvs-lib-outgoing; Fri, 24 Mar 1995 07:51:43 -0800 Received: (from ache@localhost) by freefall.cdrom.com (8.6.10/8.6.6) id HAA05439; Fri, 24 Mar 1995 07:51:33 -0800 Date: Fri, 24 Mar 1995 07:51:33 -0800 From: "Andrey A. Chernov" Message-Id: <199503241551.HAA05439@freefall.cdrom.com> To: CVS-commiters, cvs-lib Subject: cvs commit: src/lib/libc/net getnetnamadr.c Sender: commit-owner@FreeBSD.ORG Precedence: bulk ache 95/03/24 07:51:32 Modified: lib/libc/net getnetnamadr.c Log: Sicnce this code shares the same fragment as gethostnamaddr: Change strtok() to strsep(), cause memory corruption for all programs which use strtok() too in the same time. Fix potential NULL reference, depends of /etc/hosts.conf format Fix the bug when service name fetched always from beginning of the line, not from parsed token.