Fix bug 6097
[ira/wip.git] / source3 / passdb / lookup_sid.c
index 9c20042a6282ae7fb06410db05c92ec25052d53b..a5c2d503662da13ea85d4445f7d7a144be577844 100644 (file)
@@ -804,7 +804,7 @@ NTSTATUS lookup_sids(TALLOC_CTX *mem_ctx, int num_sids,
                } else {
                        /* This is a normal SID with rid component */
                        if (!sid_split_rid(&sid, &rid)) {
-                               result = NT_STATUS_INVALID_PARAMETER;
+                               result = NT_STATUS_INVALID_SID;
                                goto fail;
                        }
                }