diff options
Diffstat (limited to 'src/hnbgw.c')
-rw-r--r-- | src/hnbgw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hnbgw.c b/src/hnbgw.c index 3f94a01..dea5c5a 100644 --- a/src/hnbgw.c +++ b/src/hnbgw.c @@ -287,7 +287,7 @@ struct hnb_context *hnb_context_alloc(struct hnb_gw *gw, struct osmo_stream_srv_ ctx->gw = gw; ctx->conn = osmo_stream_srv_create(tall_hnb_ctx, link, new_fd, hnb_read_cb, NULL, ctx); - if (!ctx->conn) { + if (!ctx->conn || (ctx->hnb_register_attempted && !ctx->hnb_registered)) { LOGP(DMAIN, LOGL_INFO, "error while creating connection\n"); talloc_free(ctx); return NULL; |