]> git.ipfire.org Git - thirdparty/public-inbox.git/commit
nntp: avoid uninitialized vars from bogus LIST args
authorEric Wong <e@80x24.org>
Thu, 27 Mar 2025 23:20:44 +0000 (23:20 +0000)
committerEric Wong <e@80x24.org>
Sun, 30 Mar 2025 18:19:31 +0000 (18:19 +0000)
commitce698d1583761eb5b0d0fd401ec615b7bc173625
tree96442a7ad7fd7e48295fdbfa4bf6f695db1dce6d
parentd5b786b9af70a3094f2e2ce3a1be1482920b3be6
nntp: avoid uninitialized vars from bogus LIST args

We can only use the `list_' prefix in NNTP.pm for subcommands
which we intend to dispatch from client requests.  So prefix
the list_*_i subs with a `_' to prevent `args_ok' from firing
on a non-prototyped subroutine.

I noticed this problem in the previous change to reduce code
duplication between LIST subcommands.
lib/PublicInbox/NNTP.pm
t/nntpd.t