diff options
| author | Roy Marples <roy@marples.name> | 2017-03-27 15:56:34 +0100 |
|---|---|---|
| committer | Roy Marples <roy@marples.name> | 2017-03-27 16:42:48 +0100 |
| commit | a017eae146151a5ffeefe23757a1bc703ddbfdcc (patch) | |
| tree | 86e9dcfc890cbb7345d26af302947e92972364da | |
| parent | 48ad96637f167fc61bc43787bad5e765a2f22642 (diff) | |
| download | dhcpcd-a017eae146151a5ffeefe23757a1bc703ddbfdcc.tar.xz | |
Fix a potential crash where the ARP state could be freed during processing.
| -rw-r--r-- | arp.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -204,6 +204,9 @@ arp_read(void *arg) return; } arp_packet(ifp, buf, (size_t)bytes); + /* Check we still have a state after processing. */ + if ((state = ARP_CSTATE(ifp)) == NULL || state->fd == -1) + break; } } |
