]> hackdaworld.org Git - my-code/hdw-sniff.git/commitdiff
fix
authorhackbard <hackbard>
Wed, 22 Jun 2005 19:26:40 +0000 (19:26 +0000)
committerhackbard <hackbard>
Wed, 22 Jun 2005 19:26:40 +0000 (19:26 +0000)
parse.c

diff --git a/parse.c b/parse.c
index c4a8891e557a9873a59ea69903e6fba5f2f7c1fe..32219bddede031323a73ca05fe2dd811bfcaa58e 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -198,23 +198,23 @@ void parse_package(unsigned char *ptr,const struct pcap_pkthdr *pcap_header,cons
       if(new) {
         strcpy(sc,"flite 'station found by data package'");
         system(sc);
-      }
-      if(foo) {
-        sta->wds=1;
-        strcpy(sc,"flite 'wds package'");
-        system(sc);
-      }
-      memcpy(sta->snap,data,10);
-      if((data[0]==0xaa)&(data[1]==0xaa)&(data[2]==0x03)&
-         (data[3]==0x00)&(data[4]==0x00)&(data[5]==0x00)) {
-        sta->wep=0;
-        strcpy(sc,"flite 'not crypted'");
-        system(sc);
-      }
-      else {
-        sta->wep=WEP;
-        strcpy(sc,"flite ' crypted'");
-        system(sc);
+        if(foo) {
+          sta->wds=1;
+          strcpy(sc,"flite 'wds package'");
+          system(sc);
+        }
+        memcpy(sta->snap,data,10);
+        if((data[0]==0xaa)&(data[1]==0xaa)&(data[2]==0x03)&
+           (data[3]==0x00)&(data[4]==0x00)&(data[5]==0x00)) {
+          sta->wep=0;
+          strcpy(sc,"flite 'not crypted'");
+          system(sc);
+        }
+        else {
+          sta->wep=WEP;
+          strcpy(sc,"flite ' crypted'");
+          system(sc);
+        }
       }
          
     //}