All pastes #50016 Raw Edit

Mine

public text v1 · immutable
#50016 ·published 2006-04-19 21:38 UTC
rendered paste body
Index: pbx.c
===================================================================
--- pbx.c       (revision 167)
+++ pbx.c       (working copy)
@@ -4988,9 +4988,9 @@
                LOAD_OH(oh);
                chan = __ast_request_and_dial(type, format, data, timeout, reason, cid_num, cid_name, &oh);
                if (channel) {
-                       *channel = chan;
                        if (chan)
                                ast_mutex_lock(&chan->lock);
+                       *channel = chan;
                }
                if (chan) {
                        if (chan->cdr) { /* check if the channel already has a cdr record, if not give it one */