r4777: added a smb_composite_sesssetup() async composite function. This
[gd/samba-autobuild/.git] / source4 / smb_server / sesssetup.c
index bab52e25feb9718665b9d419c346474b5da1c37a..ee52e0cd7d30d8d9c3b1a49f5eaf3e20c03a8715 100644 (file)
@@ -307,10 +307,7 @@ NTSTATUS sesssetup_backend(struct smbsrv_request *req,
 {
        NTSTATUS status = NT_STATUS_INVALID_LEVEL;
 
-       switch (sess->generic.level) {
-               case RAW_SESSSETUP_GENERIC:
-                       status = NT_STATUS_INVALID_LEVEL;
-                       break;
+       switch (sess->old.level) {
                case RAW_SESSSETUP_OLD:
                        status = sesssetup_old(req, sess);
                        break;