Fix core dump on CLI usage
authorIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Tue, 12 Mar 2013 08:55:14 +0000 (08:55 +0000)
committerIgor Goncharovskiy <igor.goncharovsky@gmail.com>
Tue, 12 Mar 2013 08:55:14 +0000 (08:55 +0000)
Fix issue with 'unistim show info' CLI command when device connected not configured
........

Merged revisions 382827 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@382828 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_unistim.c

index 3c9d5d6..b4ec9e4 100644 (file)
@@ -5908,9 +5908,9 @@ static char *unistim_show_info(struct ast_cli_entry *e, int cmd, struct ast_cli_
        s = sessions;
        while (s) {
                ast_cli(a->fd,
-                               "sin=%s timeout=%u state=%s macaddr=%s device=%s session=%p\n",
+                               "sin=%s timeout=%u state=%s macaddr=%s device=%p session=%p\n",
                                ast_inet_ntoa(s->sin.sin_addr), s->timeout, ptestate_tostr(s->state), s->macaddr,
-                               s->device->name, s);
+                               s->device, s);
                s = s->next;
        }
        ast_mutex_unlock(&sessionlock);