From: Frank Kardel Date: Tue, 9 May 2006 07:12:14 +0000 (+0000) Subject: ntpd.c: X-Git-Tag: NTP_4_2_1P250_RC~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9aede9d905444c0307c4cf86698b5a5731ca659d;p=thirdparty%2Fntp.git ntpd.c: move freerecvbuf() into block io section test receiver instead of just the rbuf pointer bk: 446040ceim7Lat5qtCU9upkhrNJ9dw --- diff --git a/ntpd/ntpd.c b/ntpd/ntpd.c index 223161474..5ff0765b6 100644 --- a/ntpd/ntpd.c +++ b/ntpd/ntpd.c @@ -968,10 +968,9 @@ getgroup: * Call the data procedure to handle each received * packet. */ - if (rbuf != NULL) /* This should always be true */ + if (rbuf->receiver != NULL) /* This should always be true */ { (rbuf->receiver)(rbuf); - freerecvbuf(rbuf); } else { msyslog(LOG_ERR, "receive buffer corruption - receiver found to be NULL - ABORTING"); abort(); @@ -979,6 +978,7 @@ getgroup: # ifdef HAVE_SIGNALED_IO block_io_and_alarm(); # endif /* HAVE_SIGNALED_IO */ + freerecvbuf(rbuf); } /*