Skip to content

Utils exit_note does not close socket file descriptor of 0 #170

@SamHerts

Description

@SamHerts

Bug:

If socket call on line 133 returns socketfd == 0

sockfd = socket(AF_UNIX, SOCK_STREAM, 0);

socketfd will not get properly closed:

if (sockfd)
close(sockfd);

Fix:

if (sockfd != -1) 
    close(sockfd); 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions