From: Automerge Script Date: Tue, 2 Jan 2007 01:15:10 +0000 (+0000) Subject: automerge commit X-Git-Tag: 1.2.15-netsec~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6459d34ade2d1b46ad85df36e9c76e25b90f0424;p=thirdparty%2Fasterisk.git automerge commit git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.2-netsec@49131 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/BUGS b/BUGS index f1c6af13ac..5c3a20b780 100644 --- a/BUGS +++ b/BUGS @@ -10,7 +10,7 @@ For more information on using the bug tracker, or to learn how you can contribute by acting as a bug marshall please see: - http://www.digium.com/index.php?menu=bugguidelines + http://www.asterisk.org/developers/bug-guidelines If you would like to submit a feature request, please resist the temptation to post it to the bug tracker. diff --git a/channels/chan_iax2.c b/channels/chan_iax2.c index e896abeb3e..1adac13e27 100644 --- a/channels/chan_iax2.c +++ b/channels/chan_iax2.c @@ -1260,7 +1260,7 @@ static int try_firmware(char *s) return -1; } fwh = mmap(NULL, stbuf.st_size, PROT_READ, MAP_PRIVATE, fd, 0); - if (!fwh) { + if (fwh == (void *) -1) { ast_log(LOG_WARNING, "mmap failed: %s\n", strerror(errno)); close(fd); return -1; diff --git a/channels/chan_sip.c b/channels/chan_sip.c index 5054a8b3f9..425bac658a 100644 --- a/channels/chan_sip.c +++ b/channels/chan_sip.c @@ -9801,6 +9801,7 @@ static void handle_response_invite(struct sip_pvt *p, int resp, char *rest, stru if (!ignore) sip_cancel_destroy(p); check_pendings(p); + ast_set_flag(p, SIP_CAN_BYE); break; case 180: /* 180 Ringing */ if (!ignore) @@ -11031,11 +11032,11 @@ static int handle_request_bye(struct sip_pvt *p, struct sip_request *req, int de } else if (p->owner) { ast_queue_hangup(p->owner); if (option_debug > 2) - ast_log(LOG_DEBUG, "Received bye, issuing owner hangup\n."); + ast_log(LOG_DEBUG, "Received bye, issuing owner hangup\n"); } else { ast_set_flag(p, SIP_NEEDDESTROY); if (option_debug > 2) - ast_log(LOG_DEBUG, "Received bye, no owner, selfdestruct soon.\n."); + ast_log(LOG_DEBUG, "Received bye, no owner, selfdestruct soon.\n"); } transmit_response(p, "200 OK", req); diff --git a/funcs/func_math.c b/funcs/func_math.c index e8a49acc8c..a838e4f998 100644 --- a/funcs/func_math.c +++ b/funcs/func_math.c @@ -124,7 +124,6 @@ static char *builtin_function_math(struct ast_channel *chan, char *cmd, char *da iaction = LTEFUNCTION; } } else if ((op = strchr(mvalue1, '='))) { - iaction = GTFUNCTION; *op = '\0'; if (*(op+1) == '=') { *++op = '\0';