diff options
author | Dmitry Kozlov <xeb@mail.ru> | 2013-09-02 09:28:01 +0400 |
---|---|---|
committer | Dmitry Kozlov <xeb@mail.ru> | 2013-09-02 09:28:01 +0400 |
commit | 79c280518bc66560f22e9efb1d03ee1d4ff16f0b (patch) | |
tree | b6b3cc9b2e68bdbc8c587b00732b40d306d0f565 /accel-pppd/ctrl/ipoe | |
parent | 18e1094c0f6b9bda61339c246fc662e8acdf4a7b (diff) | |
download | accel-ppp-79c280518bc66560f22e9efb1d03ee1d4ff16f0b.tar.gz accel-ppp-79c280518bc66560f22e9efb1d03ee1d4ff16f0b.zip |
ipoe: another fix for race during receiving relay reply
Diffstat (limited to 'accel-pppd/ctrl/ipoe')
-rw-r--r-- | accel-pppd/ctrl/ipoe/ipoe.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/accel-pppd/ctrl/ipoe/ipoe.c b/accel-pppd/ctrl/ipoe/ipoe.c index c60decc..c4a8e47 100644 --- a/accel-pppd/ctrl/ipoe/ipoe.c +++ b/accel-pppd/ctrl/ipoe/ipoe.c @@ -1373,6 +1373,11 @@ static void ipoe_ses_recv_dhcpv4_relay(struct dhcpv4_packet *pack) if (ses->dhcpv4_relay_reply) dhcpv4_packet_free(ses->dhcpv4_relay_reply); + if (!ses->dhcpv4_request) { + ses->dhcpv4_relay_reply = NULL; + return; + } + ses->dhcpv4_relay_reply = pack; if (conf_verbose) { |