More minor cleanups
authorMatthew Fredrickson <creslin@digium.com>
Fri, 22 Jul 2005 18:28:19 +0000 (18:28 +0000)
committerMatthew Fredrickson <creslin@digium.com>
Fri, 22 Jul 2005 18:28:19 +0000 (18:28 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6183 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_zap.c

index e040fc3..b8425eb 100755 (executable)
@@ -10528,8 +10528,7 @@ static int setup_zap(int reload)
                                        res = ioctl(ctlfd, ZT_SET_DIALPARAMS, &dps);
                                        if (res < 0) {
                                                ast_log(LOG_ERROR, "Invalid tone duration: %d ms\n", toneduration);
-                                               destroy_zt_pvt(&tmp);
-                                               return NULL;
+                                               return -1;
                                        }
                                }
                                close(ctlfd);