Skip to content

Commit

Permalink
ctlinnd trace: Check the validity of a channel
Browse files Browse the repository at this point in the history
... otherwise innd dies.

close #287
  • Loading branch information
Julien-Elie committed Dec 9, 2023
1 parent ef575f8 commit eac879b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions doc/pod/news.pod
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ is not. Thanks to Enrik Berkhan for the patch for B<nnrpd>.

=item *

B<innd> no longer dies when C<ctlinnd trace> is run on an invalid channel.

=item *

INN now properly handles header field names starting with a leading dot:

=over 2
Expand Down
3 changes: 2 additions & 1 deletion innd/cc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1864,7 +1864,8 @@ CCtrace(char *av[])
case '7':
case '8':
case '9':
if ((cp = CHANfromdescriptor(atoi(p))) == NULL)
cp = CHANfromdescriptor(atoi(p));
if (cp == NULL || cp->Type == CTfree)
return CCnochannel;
CHANtracing(cp, Flag);
break;
Expand Down

0 comments on commit eac879b

Please sign in to comment.