diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/proto_clnt.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/proto_clnt.c b/src/proto_clnt.c index 5b9a467..6c59593 100644 --- a/src/proto_clnt.c +++ b/src/proto_clnt.c @@ -90,8 +90,7 @@ _e1dp_client_read(struct osmo_fd *ofd, unsigned int flags) msgb = osmo_e1dp_recv(ofd, NULL); if (!msgb) { LOGP(DE1D, LOGL_ERROR, "Lost connection with osmo-e1d control socket.\n"); - close(ofd->fd); - ofd->fd = 0; + osmo_fd_close(&clnt->ctl_fd); goto err; } |