summaryrefslogtreecommitdiff
path: root/source3/rpcclient
diff options
context:
space:
mode:
Diffstat (limited to 'source3/rpcclient')
-rw-r--r--source3/rpcclient/cmd_lsarpc.c8
-rw-r--r--source3/rpcclient/cmd_spoolss.c7
2 files changed, 14 insertions, 1 deletions
diff --git a/source3/rpcclient/cmd_lsarpc.c b/source3/rpcclient/cmd_lsarpc.c
index b6d3568668..d9e5ac397f 100644
--- a/source3/rpcclient/cmd_lsarpc.c
+++ b/source3/rpcclient/cmd_lsarpc.c
@@ -82,6 +82,8 @@ static uint32 cmd_lsa_query_info_policy(int argc, char **argv)
cli_lsa_close(&cli, &pol);
}
+ cli_lsa_shutdown(&cli);
+
return result;
}
@@ -147,6 +149,8 @@ static uint32 cmd_lsa_lookup_names(int argc, char **argv)
cli_lsa_close(&cli, &pol);
}
+ cli_lsa_shutdown(&cli);
+
return result;
}
@@ -232,6 +236,8 @@ static uint32 cmd_lsa_lookup_sids(int argc, char **argv)
cli_lsa_close(&cli, &pol);
}
+ cli_lsa_shutdown(&cli);
+
return result;
}
@@ -303,6 +309,8 @@ static uint32 cmd_lsa_enum_trust_dom(int argc, char **argv)
cli_lsa_close(&cli, &pol);
}
+ cli_lsa_shutdown(&cli);
+
return result;
}
diff --git a/source3/rpcclient/cmd_spoolss.c b/source3/rpcclient/cmd_spoolss.c
index 152ec8aa37..b491a3003e 100644
--- a/source3/rpcclient/cmd_spoolss.c
+++ b/source3/rpcclient/cmd_spoolss.c
@@ -278,6 +278,8 @@ static uint32 cmd_spoolss_enum_printers(int argc, char **argv)
}
done:
+ cli_spoolss_shutdown(&cli);
+
return result;
}
@@ -356,13 +358,15 @@ static uint32 cmd_spoolss_enum_ports(int argc, char **argv)
display_port_info_2(&ctr.port.info_2[i]);
break;
default:
- printf("unknown info level %s\n", info_level);
+ printf("unknown info level %d\n", info_level);
break;
}
}
}
done:
+ cli_spoolss_shutdown(&cli);
+
return result;
}
@@ -435,6 +439,7 @@ static uint32 cmd_spoolss_getprinter(int argc, char **argv)
done:
if (opened_hnd) cli_spoolss_closeprinter(&cli, &pol);
+
cli_spoolss_shutdown(&cli);
return result;