summaryrefslogtreecommitdiff
path: root/source3/lib/netapi
diff options
context:
space:
mode:
Diffstat (limited to 'source3/lib/netapi')
-rw-r--r--source3/lib/netapi/serverinfo.c4
-rw-r--r--source3/lib/netapi/user.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/lib/netapi/serverinfo.c b/source3/lib/netapi/serverinfo.c
index cbb9197c50..cc2ff52ab5 100644
--- a/source3/lib/netapi/serverinfo.c
+++ b/source3/lib/netapi/serverinfo.c
@@ -77,7 +77,7 @@ WERROR NetServerGetInfo_l(struct libnetapi_ctx *ctx,
case 1005:
return NetServerGetInfo_l_1005(ctx, r->out.buffer);
default:
- return WERR_UNKNOWN_LEVEL;
+ break;
}
return WERR_UNKNOWN_LEVEL;
@@ -580,7 +580,7 @@ WERROR NetServerSetInfo_l(struct libnetapi_ctx *ctx,
case 1005:
return NetServerSetInfo_l_1005(ctx, r);
default:
- return WERR_UNKNOWN_LEVEL;
+ break;
}
return WERR_UNKNOWN_LEVEL;
diff --git a/source3/lib/netapi/user.c b/source3/lib/netapi/user.c
index 5fb6c203a7..39472b20d7 100644
--- a/source3/lib/netapi/user.c
+++ b/source3/lib/netapi/user.c
@@ -1474,10 +1474,10 @@ static WERROR convert_samr_dispinfo_to_NET_DISPLAY(TALLOC_CTX *mem_ctx,
entries_read,
buffer);
default:
- return WERR_UNKNOWN_LEVEL;
+ break;
}
- return WERR_OK;
+ return WERR_UNKNOWN_LEVEL;
}
/****************************************************************