diff options
-rwxr-xr-x | channels/chan_zap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/channels/chan_zap.c b/channels/chan_zap.c index e040fc3c4..b8425eb59 100755 --- a/channels/chan_zap.c +++ b/channels/chan_zap.c @@ -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); |