Make sure we successfully opened xfrm_acq_expires

This commit is contained in:
Tobias Brunner
2012-09-28 18:54:28 +02:00
parent a13c6a900e
commit a37ac3a47a
@@ -2741,7 +2741,7 @@ kernel_netlink_ipsec_t *kernel_netlink_ipsec_create()
/* disable lifetimes for allocated SPIs in kernel */
fd = open("/proc/sys/net/core/xfrm_acq_expires", O_WRONLY);
if (fd)
if (fd > 0)
{
ignore_result(write(fd, "165", 3));
close(fd);