diff options
author | Andreas Schneider <asn@samba.org> | 2020-11-25 12:55:24 +0100 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2020-11-26 09:44:42 +0000 |
commit | b20da08d4135d73548bde1452603108fffc29f6d (patch) | |
tree | d3a943c0c113a3b07e71cd03d4172bf8b3556207 /source3/rpc_server | |
parent | 35e977156c779a1405a7eadba794fb45fb41f625 (diff) | |
download | samba-b20da08d4135d73548bde1452603108fffc29f6d.tar.gz |
s3:lsasd: Fix creating binding string for error message
Found by covscan.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/lsasd.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/rpc_server/lsasd.c b/source3/rpc_server/lsasd.c index aeeb4d7f10d..2c1fc2db5d0 100644 --- a/source3/rpc_server/lsasd.c +++ b/source3/rpc_server/lsasd.c @@ -576,8 +576,11 @@ static NTSTATUS lsasd_create_sockets(struct tevent_context *ev_ctx, for (i = 0; i < *listen_fd_size; i++) { rc = listen(listen_fd[i].fd, pf_lsasd_cfg.max_allowed_clients); if (rc == -1) { - char *ep_string = dcerpc_binding_string( - dce_ctx, e->ep_description); + char *ep_string = NULL; + + e = listen_fd[i].fd_data; + ep_string = dcerpc_binding_string(dce_ctx, + e->ep_description); DBG_ERR("Failed to listen on endpoint '%s': %s\n", ep_string, strerror(errno)); status = map_nt_error_from_unix(errno); |