Commit 2a0ec47b authored by Martin Storsjö's avatar Martin Storsjö

unix: Convert from AVERROR to errno range before comparing error codes

Signed-off-by: 's avatarMartin Storsjö <martin@martin.st>
parent 0ba4ea31
......@@ -93,7 +93,7 @@ static int unix_open(URLContext *h, const char *filename, int flags)
return 0;
fail:
if (s->listen && ret != EADDRINUSE)
if (s->listen && AVUNERROR(ret) != EADDRINUSE)
unlink(s->addr.sun_path);
if (fd >= 0)
closesocket(fd);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment