diff --git a/examples/ipv6/rpl-udp/udp-server.c b/examples/ipv6/rpl-udp/udp-server.c index 8544d04c3..11677c114 100644 --- a/examples/ipv6/rpl-udp/udp-server.c +++ b/examples/ipv6/rpl-udp/udp-server.c @@ -69,7 +69,7 @@ tcpip_handler(void) #if SERVER_REPLY uip_ipaddr_copy(&server_conn->ripaddr, &UIP_IP_BUF->srcipaddr); uip_udp_packet_send(server_conn, "Reply", sizeof("Reply")); - memset(&server_conn->ripaddr, 0, sizeof(&server_conn->ripaddr)); + uip_create_unspecified(&server_conn->ripaddr); #endif } }