From: Tilghman Lesher Date: Wed, 23 Jan 2008 04:20:15 +0000 (+0000) Subject: Oops, should have checked for a NULL obj, here, too X-Git-Tag: 1.4.18~12^2~19 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d97a51a50ba3a20fd8da290f03beef5811499f0f;p=thirdparty%2Fasterisk.git Oops, should have checked for a NULL obj, here, too git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@99775 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/res/res_odbc.c b/res/res_odbc.c index 7156341b46..29e3023305 100644 --- a/res/res_odbc.c +++ b/res/res_odbc.c @@ -473,7 +473,7 @@ struct odbc_obj *ast_odbc_request_obj(const char *name, int check) if (obj && check) { ast_odbc_sanity_check(obj); - } else if (obj->parent->idlecheck > 0 && ast_tvdiff_ms(ast_tvnow(), obj->last_used) / 1000 > obj->parent->idlecheck) + } else if (obj && obj->parent->idlecheck > 0 && ast_tvdiff_ms(ast_tvnow(), obj->last_used) / 1000 > obj->parent->idlecheck) odbc_obj_connect(obj); return obj;