Fix dereferencing pointer 89/46289/1
authorHyunjun Ko <zzoon.ko@samsung.com>
Mon, 20 Jul 2015 08:39:43 +0000 (17:39 +0900)
committerSangkyu Park <sk1122.park@samsung.com>
Wed, 19 Aug 2015 05:07:08 +0000 (14:07 +0900)
Change-Id: Ia633cfdc3d7b00d6d523136e9bc284058f0bb962

gst/rtsp-server/gstwfdmessage.c

index d29e485..5184caa 100755 (executable)
@@ -881,9 +881,7 @@ gst_wfd_parse_attribute (gchar * buffer, GstWFDMessage * msg)
             }
           } while (read_len < rem_len);
         }
-        }
 
-        if (strstr (v, "port")) {
           v = strstr (v, "port");
           if (v) {
             WFD_READ_CHAR_END_STRING (tstring, '=');
@@ -896,6 +894,7 @@ gst_wfd_parse_attribute (gchar * buffer, GstWFDMessage * msg)
             }
           }
         }
+
       }
     } else if (strstr (v, "none")) {
       msg->uibc_capability->uibcsupported = FALSE;