1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

s4:srvsvc: Fix logic on error checking.

This commit is contained in:
Andrew Kroeger 2009-09-07 07:52:37 -05:00 committed by Matthias Dieter Wallnöfer
parent e3a2a22451
commit 5fb6530295

View File

@ -1246,7 +1246,7 @@ static WERROR dcesrv_srvsvc_NetShareSetInfo(struct dcesrv_call_state *dce_call,
0,
0,
NULL);
if (W_ERROR_EQUAL(status, WERR_OK)) {
if (!W_ERROR_EQUAL(status, WERR_OK)) {
return status;
}
break;
@ -1263,7 +1263,7 @@ static WERROR dcesrv_srvsvc_NetShareSetInfo(struct dcesrv_call_state *dce_call,
0,
0,
NULL);
if (W_ERROR_EQUAL(status, WERR_OK)) {
if (!W_ERROR_EQUAL(status, WERR_OK)) {
return status;
}
break;
@ -1280,7 +1280,7 @@ static WERROR dcesrv_srvsvc_NetShareSetInfo(struct dcesrv_call_state *dce_call,
r->in.info->info2->max_users,
0,
NULL);
if (W_ERROR_EQUAL(status, WERR_OK)) {
if (!W_ERROR_EQUAL(status, WERR_OK)) {
return status;
}
break;
@ -1297,7 +1297,7 @@ static WERROR dcesrv_srvsvc_NetShareSetInfo(struct dcesrv_call_state *dce_call,
0,
r->in.info->info501->csc_policy,
NULL);
if (W_ERROR_EQUAL(status, WERR_OK)) {
if (!W_ERROR_EQUAL(status, WERR_OK)) {
return status;
}
break;
@ -1314,7 +1314,7 @@ static WERROR dcesrv_srvsvc_NetShareSetInfo(struct dcesrv_call_state *dce_call,
r->in.info->info502->max_users,
0,
r->in.info->info502->sd_buf.sd);
if (W_ERROR_EQUAL(status, WERR_OK)) {
if (!W_ERROR_EQUAL(status, WERR_OK)) {
return status;
}
break;
@ -1331,7 +1331,7 @@ static WERROR dcesrv_srvsvc_NetShareSetInfo(struct dcesrv_call_state *dce_call,
0,
0,
NULL);
if (W_ERROR_EQUAL(status, WERR_OK)) {
if (!W_ERROR_EQUAL(status, WERR_OK)) {
return status;
}
break;