aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authortilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-23 04:20:15 +0000
committertilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b>2008-01-23 04:20:15 +0000
commit7db8fee45becd3d45f6e55eab89586e5355bb160 (patch)
treec6fee0353b704b1357670da5f99dcb08bbf523f9 /res
parent80a6f1eb91b5a196cfdd387718b0b157189a27f0 (diff)
Oops, should have checked for a NULL obj, here, too
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@99775 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_odbc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_odbc.c b/res/res_odbc.c
index 7156341b4..29e302330 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;