mirror of https://gerrit.osmocom.org/osmo-pcap
osmo-pcap-server: Initialize local_fd with -1 otherwise
This commit is contained in:
parent
e6acfea051
commit
dc3d1dcd59
|
@ -165,6 +165,7 @@ struct osmo_pcap_conn *osmo_pcap_server_find(struct osmo_pcap_server *server,
|
|||
|
||||
conn->name = talloc_strdup(conn, name);
|
||||
conn->rem_fd.fd = -1;
|
||||
conn->local_fd = -1;
|
||||
conn->server = server;
|
||||
llist_add_tail(&conn->entry, &server->conn);
|
||||
return conn;
|
||||
|
|
Loading…
Reference in New Issue