clarify return value (issue #6434)
authorRussell Bryant <russell@russellbryant.com>
Thu, 9 Feb 2006 01:52:09 +0000 (01:52 +0000)
committerRussell Bryant <russell@russellbryant.com>
Thu, 9 Feb 2006 01:52:09 +0000 (01:52 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@9248 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index 54d2a6b..7514f2b 100644 (file)
@@ -7032,7 +7032,7 @@ static struct zt_pvt *mkintf(int channel, int signalling, int radio, struct zt_p
                                if (p.sigtype != (signalling & 0x3ffff)) {
                                        ast_log(LOG_ERROR, "Signalling requested on channel %d is %s but line is in %s signalling\n", channel, sig2str(signalling), sig2str(p.sigtype));
                                        destroy_zt_pvt(&tmp);
-                                       return tmp;
+                                       return NULL;
                                }
                                tmp->law = p.curlaw;
                                tmp->span = p.spanno;