]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Don't dereference the 'x' pointer if it is NULL, instead skip the
authorJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Oct 2002 18:44:59 +0000 (18:44 +0000)
committerJohn Baldwin <jhb@FreeBSD.org>
Tue, 22 Oct 2002 18:44:59 +0000 (18:44 +0000)
commit12f65109c85866874b24d136a9605fa091fddb91
tree1034b44c94dfc283e537caf97cbf0f3f7ceb42f6
parent11f0df9ed082bd238609811beba9514ae1ecb215
Don't dereference the 'x' pointer if it is NULL, instead skip the
assignment.  The netsmb code likes to call these functions with a NULL
x argument a lot.

Reported by: Vallo Kallaste <kalts@estpak.ee>
sys/kern/subr_mchain.c