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
This commit is contained in:
mentor 2007-10-14 17:48:45 +00:00
parent 3465554a3a
commit 66c5993fc6

View File

@ -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 */
}
/*