]> arthur.barton.de Git - ngircd.git/commit
IRC_SERVER: Make sure that the client sent a prefix
authorAlexander Barton <alex@barton.de>
Mon, 25 May 2020 21:43:29 +0000 (23:43 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 25 May 2020 21:51:00 +0000 (23:51 +0200)
commit02cf31c0e267a4c9a7656d43ad3ad4eeb37fc9c5
tree956df4b2e5d9f6e83766d0f7daf1f16851637fdc
parent430bb223765281487e5c6d415a8efb91e2bf3320
IRC_SERVER: Make sure that the client sent a prefix

The SERVER command is only valid with a prefix when received from other
servers, so make sure that there is one and disconnect the peer if not
(instead of crashing ...).

This obsoletes PR #275.

Thanks Hilko Bengen (hillu) for finding & reporting this as well for the
patch & pull request! But I think this is the "more correct" fix.
src/ngircd/irc-server.c