#include <sys/types.h>
#include <sys/poll.h>
#include <sys/time.h>
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
struct icmphdr {
u_int8_t type;
fprintf(stderr, "domain name decompression not implemented, aborting\n");
exit(1);
}
+ if((int)*p + (p - dnbuf) >= size) {
+ fprintf(stderr, "malformed domain name\n");
+ return;
+ }
fprintf(f, "%.*s", (int)*p, p + 1);
p += 1 + (int)*p;
if(*p != 0)
/*
* Local Variables:
- * compile-command: "gcc -Wall -g -o idnlookup idnlookup.c"
+ * compile-command: "make CFLAGS='-Wall -g'"
* End:
*/