diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-02-04 03:07:30 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2014-02-13 11:54:17 +0100 |
commit | 581ded9a2819f4533a79f5ddcd5f9203c81ea594 (patch) | |
tree | ab8ef2ebd6a00310c173af63ae7de8516049869a | |
parent | fd8834c758f59aa03c7cb8fad82c93a28c6ea444 (diff) | |
download | samba-581ded9a2819f4533a79f5ddcd5f9203c81ea594.tar.gz samba-581ded9a2819f4533a79f5ddcd5f9203c81ea594.tar.xz samba-581ded9a2819f4533a79f5ddcd5f9203c81ea594.zip |
s4:dsdb/repl: make dreplsrv_get_target_principal() static
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
-rw-r--r-- | source4/dsdb/repl/drepl_partitions.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/source4/dsdb/repl/drepl_partitions.c b/source4/dsdb/repl/drepl_partitions.c index 847a7e1f2f..815a25996a 100644 --- a/source4/dsdb/repl/drepl_partitions.c +++ b/source4/dsdb/repl/drepl_partitions.c @@ -153,10 +153,10 @@ static bool dreplsrv_spn_exists(struct ldb_context *samdb, struct ldb_dn *accoun /* work out the principal to use for DRS replication connections */ -NTSTATUS dreplsrv_get_target_principal(struct dreplsrv_service *s, - TALLOC_CTX *mem_ctx, - const struct repsFromTo1 *rft, - const char **target_principal) +static NTSTATUS dreplsrv_get_target_principal(struct dreplsrv_service *s, + TALLOC_CTX *mem_ctx, + const struct repsFromTo1 *rft, + char **target_principal) { TALLOC_CTX *tmp_ctx; struct ldb_result *res; @@ -307,7 +307,7 @@ WERROR dreplsrv_out_connection_attach(struct dreplsrv_service *s, if (!conn) { NTSTATUS nt_status; char *binding_str; - const char *target_principal = NULL; + char *target_principal = NULL; conn = talloc_zero(s, struct dreplsrv_out_connection); W_ERROR_HAVE_NO_MEMORY(conn); @@ -333,6 +333,7 @@ WERROR dreplsrv_out_connection_attach(struct dreplsrv_service *s, nt_status = dcerpc_binding_set_string_option(conn->binding, "target_principal", target_principal); + TALLOC_FREE(target_principal); if (!NT_STATUS_IS_OK(nt_status)) { return ntstatus_to_werror(nt_status); } |