diff options
Diffstat (limited to 'ospfd/ospf_network.c')
-rw-r--r-- | ospfd/ospf_network.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index e30bb0ffe..1415a6e8b 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -234,11 +234,11 @@ int ospf_sock_init(struct ospf *ospf) flog_err(EC_LIB_SOCKET, "Can't set pktinfo option for fd %d", ospf_sock); - - setsockopt_so_sendbuf(ospf_sock, bufsize); - setsockopt_so_recvbuf(ospf_sock, bufsize); } + setsockopt_so_sendbuf(ospf_sock, bufsize); + setsockopt_so_recvbuf(ospf_sock, bufsize); + ospf->fd = ospf_sock; return ret; } |