mirror of
https://github.com/opnsense/src.git
synced 2026-04-03 16:35:27 -04:00
netlink: initialise error in nl_autobind_port().
CID: 1498877 MFC after: 2 weeks
This commit is contained in:
parent
3f70fca90f
commit
4404e840cf
1 changed files with 1 additions and 1 deletions
|
|
@ -384,7 +384,7 @@ nl_autobind_port(struct nlpcb *nlp, uint32_t candidate_id)
|
|||
uint32_t port_id = candidate_id;
|
||||
NLCTL_TRACKER;
|
||||
bool exist;
|
||||
int error;
|
||||
int error = EADDRINUSE;
|
||||
|
||||
for (int i = 0; i < 10; i++) {
|
||||
NL_LOG(LOG_DEBUG3, "socket %p, trying to assign port %d", nlp->nl_socket, port_id);
|
||||
|
|
|
|||
Loading…
Reference in a new issue