From 66c5993fc6017d2282748f58d0062d557f9c40f3 Mon Sep 17 00:00:00 2001 From: mentor Date: Sun, 14 Oct 2007 17:48:45 +0000 Subject: [PATCH] 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 --- ath/if_ath.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ } /* -- 2.35.1