Eelco Chaudron <[email protected]> writes:

> Signed-off-by: Eelco Chaudron <[email protected]>
> ---

Acked-by: Aaron Conole <[email protected]>

>  lib/vlog.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/lib/vlog.c b/lib/vlog.c
> index 59b524b09..876209ee2 100644
> --- a/lib/vlog.c
> +++ b/lib/vlog.c
> @@ -396,7 +396,9 @@ vlog_set_log_file__(char *new_log_file_name)
>                    && old_stat.st_ino == new_stat.st_ino));
>      ovs_mutex_unlock(&log_file_mutex);
>      if (same_file) {
> -        close(new_log_fd);
> +        if (new_log_fd >= 0) {
> +            close(new_log_fd);
> +        }
>          free(new_log_file_name);
>          return 0;
>      }

_______________________________________________
dev mailing list
[email protected]
https://mail.openvswitch.org/mailman/listinfo/ovs-dev

Reply via email to