werror: replace WERR_UNKNOWN_LEVEL with WERR_INVALID_LEVEL in source3/rpc_server/
[nivanova/samba-autobuild/.git] / source3 / rpc_server / netlogon / srv_netlog_nt.c
index 2c4277a5fe99325a88ec1c76d08e1aa743297363..ef2c8278afbb1532c30d904ecf0372128fa5ebb4 100644 (file)
@@ -72,7 +72,7 @@ WERROR _netr_LogonControl(struct pipes_struct *p,
        case 2:
                return WERR_NOT_SUPPORTED;
        default:
-               return WERR_UNKNOWN_LEVEL;
+               return WERR_INVALID_LEVEL;
        }
 
        switch (r->in.function_code) {
@@ -393,7 +393,7 @@ WERROR _netr_LogonControl2Ex(struct pipes_struct *p,
                r->out.query->info4 = info4;
                break;
        default:
-               return WERR_UNKNOWN_LEVEL;
+               return WERR_INVALID_LEVEL;
        }
 
        return WERR_OK;