unix: Convert from AVERROR to errno range before comparing error codes
Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
		@@ -93,7 +93,7 @@ static int unix_open(URLContext *h, const char *filename, int flags)
 | 
				
			|||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
fail:
 | 
					fail:
 | 
				
			||||||
    if (s->listen && ret != EADDRINUSE)
 | 
					    if (s->listen && AVUNERROR(ret) != EADDRINUSE)
 | 
				
			||||||
        unlink(s->addr.sun_path);
 | 
					        unlink(s->addr.sun_path);
 | 
				
			||||||
    if (fd >= 0)
 | 
					    if (fd >= 0)
 | 
				
			||||||
        closesocket(fd);
 | 
					        closesocket(fd);
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user