Fix ips_out_nosa errors accounting.

MFC after:	1 week
Sponsored by:	Yandex LLC
This commit is contained in:
Andrey V. Elsukov 2014-11-12 14:00:49 +00:00
parent 2b21d0e883
commit f3c93842bf

View File

@ -358,7 +358,16 @@ again:
* this packet because it is responsibility for
* upper layer to retransmit the packet.
*/
IPSECSTAT_INC(ips_out_nosa);
switch(af) {
case AF_INET:
IPSECSTAT_INC(ips_out_nosa);
break;
#ifdef INET6
case AF_INET6:
IPSEC6STAT_INC(ips_out_nosa);
break;
#endif
}
goto bad;
}
sav = isr->sav;