Closed milabs closed 6 years ago
https://github.com/jvinet/knock/blob/master/src/knockd.c#L1631
/* create a new entry */ attempt = (knocker_t*)malloc(sizeof(knocker_t)); attempt->srchost = NULL; // <<-- NULL-ptr deref if malloc fails if(attempt == NULL) { perror("malloc"); exit(1); }
Already addressed by pull request #52
Ah, ok... didn't see it
https://github.com/jvinet/knock/blob/master/src/knockd.c#L1631