diff options
author | Daniel Willmann <dwillmann@sysmocom.de> | 2016-01-12 10:14:11 +0100 |
---|---|---|
committer | Daniel Willmann <dwillmann@sysmocom.de> | 2016-01-12 10:14:11 +0100 |
commit | 0118839829aed7439364e3526845683149cce021 (patch) | |
tree | 4a31263120d7f31284116b42482aa228864c54b1 /src/hnbgw_hnbap.c | |
parent | 86a14053d89999b0b43467e4e0d5eb1d033c9b52 (diff) |
Revert "hnbgw_hnbap: Zero IEs_t before decode is called"
This reverts commit a8b6b1e3a1fb195d33f2e244494cb902eec5e405.
Zeroing is now done inside of the decode function
Diffstat (limited to 'src/hnbgw_hnbap.c')
-rw-r--r-- | src/hnbgw_hnbap.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/hnbgw_hnbap.c b/src/hnbgw_hnbap.c index b810915..971e97e 100644 --- a/src/hnbgw_hnbap.c +++ b/src/hnbgw_hnbap.c @@ -119,7 +119,6 @@ static int hnbgw_rx_hnb_deregister(struct hnb_context *ctx, ANY_t *in) HNBDe_RegisterIEs_t ies; int rc; - memset(&ies, 0, sizeof(ies)); rc = hnbap_decode_hnbde_registeries(&ies, in); if (rc < 0) return rc; @@ -138,7 +137,6 @@ static int hnbgw_rx_hnb_register_req(struct hnb_context *ctx, ANY_t *in) HNBRegisterRequestIEs_t ies; int rc; - memset(&ies, 0, sizeof(ies)); rc = hnbap_decode_hnbregisterrequesties(&ies, in); if (rc < 0) return rc; @@ -168,7 +166,6 @@ static int hnbgw_rx_ue_register_req(struct hnb_context *ctx, ANY_t *in) char imsi[16]; int rc; - memset(&ies, 0, sizeof(ies)); rc = hnbap_decode_ueregisterrequesties(&ies, in); if (rc < 0) return rc; @@ -210,7 +207,6 @@ static int hnbgw_rx_ue_deregister(struct hnb_context *ctx, ANY_t *in) int rc; uint32_t ctxid; - memset(&ies, 0, sizeof(ies)); rc = hnbap_decode_uede_registeries(&ies, in); if (rc < 0) return rc; @@ -233,7 +229,6 @@ static int hnbgw_rx_err_ind(struct hnb_context *hnb, ANY_t *in) ErrorIndicationIEs_t ies; int rc; - memset(&ies, 0, sizeof(ies)); rc = hnbap_decode_errorindicationies(&ies, in); if (rc < 0) return rc; |