Try not to dereference null pointers; the loop above might not have run
authormentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 14 Oct 2007 17:48:45 +0000 (17:48 +0000)
committermentor <mentor@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Sun, 14 Oct 2007 17:48:45 +0000 (17:48 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2745 0192ed92-7a03-0410-a25b-9323aeb14dbd

ath/if_ath.c

index 0d2c387e5821ac8bb5fe9bb4a74d0899a73c2c13..d7beaeb5ad2f806f395df4c78faac9839106161b 100644 (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 */
        }
 
        /*