From: mentor Date: Sun, 14 Oct 2007 17:48:45 +0000 (+0000) Subject: Try not to dereference null pointers; the loop above might not have run X-Git-Url: http://git.ozo.com/?a=commitdiff_plain;ds=sidebyside;h=66c5993fc6017d2282748f58d0062d557f9c40f3;p=madwifi%2F.git Try not to dereference null pointers; the loop above might not have run git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2745 0192ed92-7a03-0410-a25b-9323aeb14dbd --- diff --git a/ath/if_ath.c b/ath/if_ath.c index 0d2c387..d7beaeb 100644 --- a/ath/if_ath.c +++ b/ath/if_ath.c @@ -4355,7 +4355,8 @@ ath_beacon_send(struct ath_softc *sc, int *needmark) } } } - *bflink = 0; /* link of last frame */ + if (bflink != NULL) + *bflink = 0; /* link of last frame */ } /*