bk: 50026740AlMejDWW-NVg9WVWs6frbw
+* CID 709185: refclock_chu.c will leak fd==0 (which should be impossible).
(4.2.7p288) 2012/07/03 Released by Harlan Stenn <stenn@ntp.org>
* CID 709173: Make sure a libisc function we do not use is called properly.
(4.2.7p287) 2012/07/03 Released by Harlan Stenn <stenn@ntp.org>
* Open audio device. Don't complain if not there.
*/
fd_audio = audio_init(DEVICE_AUDIO, AUDIO_BUFSIZ, unit);
+
+ /*
+ ** refclock_irig.c and refclock_wwv.c call audio_init() too,
+ ** but they tolerate fd == 0.
+ **
+ ** This code will leak a file descriptor if it is 0.
+ **
+ ** For now...
+ */
+ INSIST(0 != fd_audio); /* Coverity 709185 */
+
#ifdef DEBUG
if (fd_audio > 0 && debug)
audio_show();