Check that the ifnet_addrs entry is actually used before dereferencing it.
authorJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 3 Jan 2005 23:25:25 +0000 (23:25 +0000)
committerJoerg Sonnenberger <joerg@dragonflybsd.org>
Mon, 3 Jan 2005 23:25:25 +0000 (23:25 +0000)
commitbdde688db65b4f2696ad60d2b6de710a89b3f69c
treeff7fde3dd31fd26f85115e20e69072767b99c092
parent6717e791629ec3f1ecc291688aad21af053312c0
Check that the ifnet_addrs entry is actually used before dereferencing it.
Also protect the check with splnet() to avoid further race conditions.
sys/net/if_mib.c