diff options
Diffstat (limited to 'src/iu_helpers.c')
-rw-r--r-- | src/iu_helpers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/iu_helpers.c b/src/iu_helpers.c index 39b0521..bf82fde 100644 --- a/src/iu_helpers.c +++ b/src/iu_helpers.c @@ -109,7 +109,7 @@ int ranap_transp_layer_addr_decode(char *addr, unsigned int addr_len, buf = trasp_layer_addr->buf; len = trasp_layer_addr->size; - if (buf[0] == 0x35 && len == 7) + if (buf[0] == 0x35 && len >= 7) rc = inet_ntop(AF_INET, buf + 3, addr, addr_len); else if (len > 3) rc = inet_ntop(AF_INET, buf, addr, addr_len); |