summaryrefslogtreecommitdiff
path: root/source3/libnet
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-04-11 14:20:32 +0200
committerMichael Adam <obnox@samba.org>2011-05-10 19:13:21 +0200
commite19c4f278b5467327df7a90256802382c7999414 (patch)
tree5319762a937aefe7ce2c6dc935b0ebc4c4a5b407 /source3/libnet
parentff5838d97aad5b283073726052456b06ecf410b2 (diff)
downloadsamba-e19c4f278b5467327df7a90256802382c7999414.tar.gz
samba-e19c4f278b5467327df7a90256802382c7999414.tar.bz2
samba-e19c4f278b5467327df7a90256802382c7999414.zip
libsmbconf: Convert smbconf_delete_parameter() to sbcErr.
Signed-off-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/libnet')
-rw-r--r--source3/libnet/libnet_join.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/source3/libnet/libnet_join.c b/source3/libnet/libnet_join.c
index ef0d5d0850..2b06be5dc1 100644
--- a/source3/libnet/libnet_join.c
+++ b/source3/libnet/libnet_join.c
@@ -1540,8 +1540,11 @@ static WERROR do_unjoin_modify_vals_config(struct libnet_UnjoinCtx *r)
goto done;
}
- werr = smbconf_delete_global_parameter(ctx, "workgroup");
- W_ERROR_NOT_OK_GOTO_DONE(werr);
+ err = smbconf_delete_global_parameter(ctx, "workgroup");
+ if (!SBC_ERROR_IS_OK(err)) {
+ werr = WERR_NO_SUCH_SERVICE;
+ goto done;
+ }
smbconf_delete_global_parameter(ctx, "realm");
}