Skip to content

Commit

Permalink
[libnozzle] re-instate error checking in nozzle_get_ips
Browse files Browse the repository at this point in the history
Signed-off-by: Fabio M. Di Nitto <fdinitto@redhat.com>
  • Loading branch information
fabbione committed Dec 15, 2018
1 parent 212baff commit 0b28d50
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libnozzle/libnozzle.c
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,11 @@ int nozzle_get_ips(const nozzle_t nozzle, struct nozzle_ip **nozzle_ip)
{
int err = 0, savederrno = 0;

if (!nozzle_ip) {
errno = EINVAL;
return -1;
}

savederrno = pthread_mutex_lock(&config_mutex);
if (savederrno) {
errno = savederrno;
Expand Down

0 comments on commit 0b28d50

Please sign in to comment.