1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

netapi: make sure to always cleanup after testing NetUser calls.

Guenther
This commit is contained in:
Günther Deschner 2008-10-24 00:05:05 +02:00
parent d27bc7377a
commit 0bfbae0f50

View File

@ -449,6 +449,10 @@ NET_API_STATUS netapitest_user(struct libnetapi_ctx *ctx,
printf("NetUser tests succeeded\n");
out:
/* cleanup */
NetUserDel(hostname, username);
NetUserDel(hostname, username2);
if (status != 0) {
printf("NetUser testsuite failed with: %s\n",
libnetapi_get_error_string(ctx, status));