OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
CVS: cvs.openbsd.org: src

From: Christopher Pascoe (pascoecvs.openbsd.org)
Date: Sun Dec 02 2007 - 05:36:39 CST


CVSROOT: /cvs
Module name: src
Changes by: pascoecvs.openbsd.org 2007/12/02 04:36:39

Modified files:
        sys/net : pf_ioctl.c

Log message:
DIOCADDSTATE would always dereference a NULL pointer during this copy
and what it was copying would get overwritten anyway. Remove the copy
and avoid a panic.

DIOCGETSTATE would incorrectly dereference a pointer to a pointer,
causing another panic. Fix this.