Skip to content

Commit

Permalink
s3:utils: Check return value of cli_RNetServiceEnum() (CID 1273313)
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
  • Loading branch information
jsutton24 authored and abartlet committed Oct 13, 2023
1 parent 59e1687 commit ac00851
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions source3/utils/net_rap.c
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,10 @@ int net_rap_service(struct net_context *c, int argc, const char **argv)
d_printf(_("Service name Comment\n"
"-----------------------------\n"));
ret = cli_RNetServiceEnum(cli, long_group_fn, NULL);
if (ret) {
cli_shutdown(cli);
return ret;
}
}
ret = cli_RNetServiceEnum(cli, service_fn, NULL);
cli_shutdown(cli);
Expand Down

0 comments on commit ac00851

Please sign in to comment.