Skip to content

Commit

Permalink
mehmetali did some more testing and found out that test.flv?start (wi…
Browse files Browse the repository at this point in the history
…thout =) now crashes. Fixed this by explicitly

checking the return value from cherokee_avl_get_ptr.


git-svn-id: svn://cherokee-project.com/cherokee/trunk@6820 5dc97367-97f1-0310-9951-d761b3857238
  • Loading branch information
skinkie committed Aug 21, 2011
1 parent 16daeaa commit 8096406
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cherokee/handler_streaming.c
Original file line number Diff line number Diff line change
Expand Up @@ -438,7 +438,7 @@ cherokee_handler_streaming_init (cherokee_handler_streaming_t *hdl)
ret = cherokee_connection_parse_args (conn);
if (ret == ret_ok) {
ret = cherokee_avl_get_ptr (conn->arguments, "start", (void **) &value);
if (ret == ret_ok && value->len > 0) {
if (ret == ret_ok && value && value->len > 0) {
/* Set the starting point
*/
if (is_flv) {
Expand Down

0 comments on commit 8096406

Please sign in to comment.