From 94e29868e0f40b7adf678bf97419c5c848a02c90 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 21 Sep 1992 17:53:46 +0000 Subject: [PATCH] return an error if the timeout supplied to fdmgr pend event is out of range --- src/libCom/fdmgr.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/libCom/fdmgr.c b/src/libCom/fdmgr.c index a9ca37f76..9fdbd21f3 100644 --- a/src/libCom/fdmgr.c +++ b/src/libCom/fdmgr.c @@ -52,6 +52,8 @@ * fdentry is reused * .10 joh 091192 added SCCS ID * .11 joh 092192 added std header + * .11 joh 092192 return an error if the timeout supplied to fdmgr + * pend event is out of range * * NOTES: * .01 write fd callbacks are one shots consistent with the lower @@ -509,6 +511,9 @@ struct timeval *ptimeout; pfdctx->select_tmo = FALSE; palarm = fdmgr_add_timeout(pfdctx, ptimeout, select_alarm ,pfdctx); + if(!palarm){ + return ERROR; + } process_alarm_queue(pfdctx, &t);