diff --git a/mud.c b/mud.c index 20dc976..18ca764 100644 --- a/mud.c +++ b/mud.c @@ -451,8 +451,10 @@ mud_get_path(struct mud *mud, struct sockaddr_storage *local_addr, return path; } - if (!create) + if (!create) { + errno = 0; return NULL; + } struct mud_path *path = NULL;