#! /bin/sh /usr/share/dpatch/dpatch-run ## app_sql_postgres.dpatch by Jose Carlos Garcia Sogo ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: avoid a crash @DPATCH@ diff -rub asterisk-1.0.7.dfsg.1/channel.c asterisk.new/channel.c --- asterisk-1.0.7.dfsg.1/channel.c 2005-04-13 21:23:25.000000000 +0200 +++ asterisk.new/channel.c 2005-04-13 20:55:15.000000000 +0200 @@ -401,6 +401,11 @@ } ast_mutex_lock(&chan->lock); prev = NULL; + if(! chan->pvt) { + ast_mutex_unlock(&chan->lock); + ast_log(LOG_WARNING, "chan->pvt was NULL\n"); + return -1; + } cur = chan->pvt->readq; while(cur) { if ((cur->frametype == AST_FRAME_CONTROL) && (cur->subclass == AST_CONTROL_HANGUP)) { Only in asterisk.new/: dns.o