smbd: Remove an unnecessary else
authorVolker Lendecke <vl@samba.org>
Thu, 16 May 2024 10:49:17 +0000 (12:49 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 22 May 2024 04:23:29 +0000 (04:23 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source3/smbd/smb2_trans2.c

index c3c2f569bec9e05dd70d775002dce59415a7aa88..3c44a97d74c489b53d6caa0a84710640081b6853 100644 (file)
@@ -458,7 +458,8 @@ static NTSTATUS get_ea_list_from_fsp(TALLOC_CTX *mem_ctx,
                         */
                        TALLOC_FREE(listp);
                        continue;
-               } else if (listp->ea.value.length > 65536) {
+               }
+               if (listp->ea.value.length > 65536) {
                        /*
                         * SMB clients may report error with file
                         * if large EA is presented to them.