1
0
mirror of https://github.com/jedisct1/dnsblast.git synced 2024-10-05 18:30:54 +01:00

Dirty, dirty hack to change source port everytime

This commit is contained in:
alfonzo1955 2014-05-27 14:58:46 -04:00
parent 22b6cb6c38
commit 30e7d8fd0f

View File

@ -351,15 +351,15 @@ main(int argc, char *argv[])
if (argc > 4) {
port = argv[4];
}
if ((sock = get_sock(host, port, &ai)) == -1) {
perror("Oops");
exit(EXIT_FAILURE);
}
init_context(&context, sock, ai, fuzz);
context.pps = pps;
srand(0U);
assert(send_count > 0UL);
do {
if ((sock = get_sock(host, port, &ai)) == -1) {
perror("Oops");
exit(EXIT_FAILURE);
}
init_context(&context, sock, ai, fuzz);
context.pps = pps;
srand(0U);
assert(send_count > 0UL);
if (rand() > REPEATED_NAME_PROBABILITY) {
get_random_name(name, sizeof name);
}