Skip to content

libsock: pointer al is checked for nullness after dereferencing #92

@szsam

Description

@szsam

In the following code snippet, the pointer al is checked for nullness after is has already been dereferenced. Should we move the check before the dereference?

if (al == NULL) {
printf("Could not get ip address of %s!\n", domain);
return -1;
}

if (al == NULL) {
printf("Could not get ip address of %s!\n", name);
return -1;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions