diff stream/realrtsp/asmrp.c @ 21787:899739212237

Fix invalid memory access if identifier is unknown
author rtogni
date Mon, 01 Jan 2007 17:57:16 +0000
parents 4511c04bc4a0
children 80ff3962cef4
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);