Crash when re-using message number
Sam Couter <[email protected]> Sat, 5 Apr 2003 13:32:39 +1000
| Newsgroups | gmane.network.beep.beepcore.c.general |
|---|---|
| Message-ID | <[email protected]> |
Simple patch is attached to stop the core library crashing when a message number is reused in violation of the BEEP protocol requirements. -- Sam "Eddie" Couter | mailto:[email protected] Debian Developer | mailto:[email protected] | jabber:[email protected] OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C
reuse_msg_number.diff
(text/plain, 367 B)
--- beepcore-c-0.2+cvs20020924.orig/base/generic/CBEEP.c 2002-09-07 11:15:23.000000000 +1000
+++ beepcore-c-0.2+cvs20020924/base/generic/CBEEP.c 2003-04-05 13:15:30.000000000 +1000
@@ -782,6 +782,7 @@
if (!check_valid_in(s, c, s->read_frame)) {
frame_destroy(s->read_frame, c, s);
s->read_frame = NULL;
+ return;
}
/* Add it to the channel */
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE+jk5WhTADrt6Jx1wRAvU7AKDuHrfiPR98WPKcu7vHn6AkYiSfwACgnLgD ZihfX353LOv7A9/puPlWlOo= =TZc5 -----END PGP SIGNATURE-----