]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:srv_epmapper: use dcerpc_binding_get_transport() in _epm_Insert() and _epm_Delete()
authorStefan Metzmacher <metze@samba.org>
Fri, 31 Jan 2014 20:10:41 +0000 (21:10 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 13 Feb 2014 10:54:16 +0000 (11:54 +0100)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source3/rpc_server/epmapper/srv_epmapper.c

index 32b8b1b577cb344265d40765b04dc8818b5625c4..0ed03b8091ccfa1b319b5e94c251b56ca954b027 100644 (file)
@@ -346,6 +346,7 @@ error_status_t _epm_Insert(struct pipes_struct *p,
                  r->in.num_ents));
 
        for (i = 0; i < r->in.num_ents; i++) {
+               enum dcerpc_transport_t transport;
                add_ep = false;
                b = NULL;
 
@@ -361,8 +362,9 @@ error_status_t _epm_Insert(struct pipes_struct *p,
                        goto done;
                }
 
+               transport = dcerpc_binding_get_transport(b);
                DEBUG(3, ("_epm_Insert: Adding transport %s for %s\n",
-                         derpc_transport_string_by_transport(b->transport),
+                         derpc_transport_string_by_transport(transport),
                          r->in.entries[i].annotation));
 
                /* Check if the entry already exits */
@@ -480,6 +482,8 @@ error_status_t _epm_Delete(struct pipes_struct *p,
        }
 
        for (i = 0; i < r->in.num_ents; i++) {
+               enum dcerpc_transport_t transport;
+
                b = NULL;
 
                status = dcerpc_binding_from_tower(tmp_ctx,
@@ -490,8 +494,9 @@ error_status_t _epm_Delete(struct pipes_struct *p,
                        goto done;
                }
 
+               transport = dcerpc_binding_get_transport(b);
                DEBUG(3, ("_epm_Delete: Deleting transport '%s' for '%s'\n",
-                         derpc_transport_string_by_transport(b->transport),
+                         derpc_transport_string_by_transport(transport),
                          r->in.entries[i].annotation));
 
                ep = find_endpoint(endpoint_table, b);