Просмотр исходного кода

rootwrap: file descriptor leak

Rémi Denis-Courmont 11 лет назад
Родитель
Сommit
a8dffdef8b
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      bin/rootwrap.c

+ 1 - 0
bin/rootwrap.c

@@ -172,6 +172,7 @@ static void rootprocess (int fd)
                 close (sock);
                 continue;
             }
+            close (sock);
         }
         send_err (fd, errno);
     }