Out of memory error is getting logged from get_if_info() due to wrong condition check.

Description

curr->ifhostnames[i] = (char*)calloc(PBS_MAXHOSTNAME, sizeof(char));
if (curr->ifhostnames[i]) { /* This is wrong */
free(addrlistp);
free_if_info(head);
free_if_hostnames(hostnames);
strncpy(msg, "Out of memory", LOG_BUF_SIZE);
msg[LOG_BUF_SIZE - 1] = '\0';
return NULL;
}

Acceptance Criteria

None

Activity

Show:
nithin johnson
March 30, 2018, 12:03 PM

Interfaces will not get logged on Windows due to this issue.

nithin johnson
April 6, 2018, 8:59 AM

Assignee

nithin johnson

Reporter

nithin johnson

Severity

None

OS

None

Start Date

None

Pull Request URL

Story Points

1

Fix versions

Affects versions

Priority

Low
Configure