aboutsummaryrefslogtreecommitdiffstats
path: root/src/hnbgw_hnbap.c
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2019-08-20 06:00:47 +0200
committerNeels Hofmeyr <neels@hofmeyr.de>2019-08-20 06:12:15 +0200
commit4d158e6f0d060318f4f0587af3781f1103ecf63b (patch)
tree8f31d10a79d08e95e49a9f78f119e551dc14cc0a /src/hnbgw_hnbap.c
parenta3cccdc51c47fb4c8a5bb4ceb9c839aaab03be77 (diff)
directly discard hnb that failed to register upon connectneels/test
Diffstat (limited to 'src/hnbgw_hnbap.c')
-rw-r--r--src/hnbgw_hnbap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c
index 142b0d5..737536b 100644
--- a/src/hnbgw_hnbap.c
+++ b/src/hnbgw_hnbap.c
@@ -417,6 +417,8 @@ static int hnbgw_rx_hnb_register_req(struct hnb_context *ctx, ANY_t *in)
HNBRegisterRequestIEs_t ies;
int rc;
+ ctx->hnb_register_attempted = true;
+
rc = hnbap_decode_hnbregisterrequesties(&ies, in);
if (rc < 0) {
LOGP(DHNBAP, LOGL_ERROR, "Failure to decode HNB-REGISTER-REQ from %s: rc=%d\n",