From f692276e2bcce22160248f27a905e517e706a952 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 5 Jan 2021 18:19:48 +0000 Subject: imap: fix uninitialized var on MSN search miss It seems only triggered by bots trying to steal information. --- lib/PublicInbox/IMAP.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox') diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 68a7e050..226e98a2 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -1142,7 +1142,7 @@ sub search_common { }; my $mset = $srch->mset($q, $opt); my $uids = $srch->mset_to_artnums($mset, $opt); - msn_convert($self, $uids) if $want_msn; + msn_convert($self, $uids) if scalar(@$uids) && $want_msn; "* SEARCH @$uids\r\n$tag OK Search done\r\n"; } else { "$tag BAD Error\r\n"; -- cgit v1.2.3-24-ge0c7