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:
parent
d27bc7377a
commit
0bfbae0f50
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user