posix: added null check when there is no interface specified
@@ -1329,10 +1329,12 @@ void ioctl_pack(msg_t *msg, unsigned long request, void *data, id_t id)
}
else if (request == SIOCADDRT || request == SIOCDELRT) {
struct rtentry *rt = (struct rtentry *)data;
+ if (rt->rt_dev != NULL) {
msg->o.data = rt->rt_dev;
msg->o.size = hal_strlen(rt->rt_dev) + 1;
}
}
+}
int ioctl_processResponse(const msg_t *msg, unsigned long request, void *data)
