fixed some start init values
@@ -214,8 +214,6 @@ int exeaptype[256];
bool globalinit()
{
-char *unknown = "unknown";
-
hexmodeoutname = NULL;
hccapxbestoutname = NULL;
hccapxrawoutname = NULL;
@@ -245,10 +243,6 @@ maxrcdiff = MAX_RC_DIFF;
setbuf(stdout, NULL);
srand(time(NULL));
-strcpy(pcapnghwinfo, unknown);
-strcpy(pcapngosinfo, unknown);
-strcpy(pcapngapplinfo, unknown);
-
return true;
}
/*===========================================================================*/
@@ -3917,10 +3911,6 @@ section_header_block_t pcapngshb;
interface_description_block_t pcapngidb;
packet_block_t pcapngpb;
enhanced_packet_block_t pcapngepb;
-
-myaktreplaycount = MYREPLAYCOUNT;
-memcpy(&myaktnonce, &mynonce, 32);
-
uint8_t packet[MAXPACPSNAPLEN];
printf("start reading from %s\n", pcapinname);
@@ -4165,9 +4155,6 @@ pcap_hdr_t pcapfhdr;
pcaprec_hdr_t pcaprhdr;
uint8_t packet[MAXPACPSNAPLEN];
-myaktreplaycount = MYREPLAYCOUNT;
-memcpy(&myaktnonce, &mynonce, 32);
-
printf("start reading from %s\n", pcapinname);
memset(&packet, 0, MAXPACPSNAPLEN);
res = read(fd, &pcapfhdr, PCAPHDR_SIZE);
@@ -4415,8 +4402,15 @@ tzsp80211prismframecount = 0;
tzsp80211avsframecount = 0;
wepframecount = 0;
+char *unknown = "unknown";
char tmpoutname[PATH_MAX+1];
+myaktreplaycount = MYREPLAYCOUNT;
+memcpy(&myaktnonce, &mynonce, 32);
+strcpy(pcapnghwinfo, unknown);
+strcpy(pcapngosinfo, unknown);
+strcpy(pcapngapplinfo, unknown);
+
if(testgzipfile(pcapinname) == true)
{
memset(&tmpoutname, 0, PATH_MAX+1);
