changeset 21787:899739212237

Fix invalid memory access if identifier is unknown
author rtogni
date Mon, 01 Jan 2007 17:57:16 +0000
parents 6632d0c08bb1
children 04281be4fbdd
files stream/realrtsp/asmrp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/stream/realrtsp/asmrp.c	Sun Dec 31 18:12:06 2006 +0000
+++ b/stream/realrtsp/asmrp.c	Mon Jan 01 17:57:16 2007 +0000
@@ -426,7 +426,7 @@
     i = asmrp_find_id (p, p->str);
     if (i<0) {
       mp_msg(MSGT_STREAM, MSGL_ERR, "error: unknown identifier %s\n", p->str);
-    }
+    } else
     ret = p->sym_tab[i].v;
 
     asmrp_get_sym (p);