check number of decodes before uploading them to pskreporter
@@ -193,6 +193,8 @@ int main(int argc, char *argv[])
if(counter < 13) continue;
}
+ if(counter > 0)
+ {
size = dst - start;
padding = (4 - size % 4) % 4;
size += padding;
@@ -210,12 +212,13 @@ int main(int argc, char *argv[])
sendto(sock, buffer, size, 0, (struct sockaddr *)&addr, sizeof(addr));
- if(src == NULL) break;
-
counter = 0;
++sequence;
dst = start + 4;
}
+ if(src == NULL) break;
+ }
+
return EXIT_SUCCESS;
}
