]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
this should never happen, but just in case, this will at least calm coverity
authorMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:30:19 +0000 (16:30 -0400)
committerMichael Jerris <mike@jerris.com>
Mon, 28 Apr 2014 20:30:19 +0000 (16:30 -0400)
src/switch_channel.c

index d26fd919d205ba1d1e79aeeb15f79ace36d8ec11..8a9c597fb31958d7534f1eb237e6c6eee971bee4 100644 (file)
@@ -4869,7 +4869,7 @@ static void process_device_hup(switch_channel_t *channel)
 
                if (!node->hold_record) {
                        node->hold_record = newhr;
-               } else {
+               } else if (last) {
                        last->next = newhr;
                }