Skip to content

Commit de883d7

Browse files
MarkusLassilarlubos
authored andcommitted
applications: serial_lte_modem: Fix bind with IPv6
Fix bind with IPv6. Signed-off-by: Markus Lassila <markus.lassila@nordicsemi.no>
1 parent eaa4e9c commit de883d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

applications/serial_lte_modem/src/slm_at_socket.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ static int do_bind(uint16_t port)
548548
char ipv6_addr[INET6_ADDRSTRLEN];
549549

550550
util_get_ip_addr(0, NULL, ipv6_addr);
551-
if (!*ipv6_addr == 0) {
551+
if (!*ipv6_addr) {
552552
LOG_ERR("Get local IPv6 address failed");
553553
return -EINVAL;
554554
}

0 commit comments

Comments
 (0)