Loading lib/http.c +8 −6 Original line number Diff line number Diff line Loading @@ -2809,6 +2809,7 @@ static bool checkrtspprefix(struct Curl_easy *data, const char *s) { bool result = FALSE; #ifdef CURL_DOES_CONVERSIONS /* convert from the network encoding using a scratch area */ Loading @@ -2819,16 +2820,17 @@ checkrtspprefix(struct Curl_easy *data, } if(CURLE_OK != Curl_convert_from_network(data, scratch, strlen(s)+1)) { /* Curl_convert_from_network calls failf if unsuccessful */ free(scratch); return FALSE; /* can't return CURLE_foobar so return FALSE */ result = FALSE; /* can't return CURLE_foobar so return FALSE */ } s = scratch; else result = checkprefix("RTSP/", scratch)? TRUE: FALSE; free(scratch); #else (void)data; /* unused */ result = checkprefix("RTSP/", s)? TRUE: FALSE; #endif /* CURL_DOES_CONVERSIONS */ if(checkprefix("RTSP/", s)) return TRUE; return FALSE; return result; } #endif /* CURL_DISABLE_RTSP */ Loading Loading
lib/http.c +8 −6 Original line number Diff line number Diff line Loading @@ -2809,6 +2809,7 @@ static bool checkrtspprefix(struct Curl_easy *data, const char *s) { bool result = FALSE; #ifdef CURL_DOES_CONVERSIONS /* convert from the network encoding using a scratch area */ Loading @@ -2819,16 +2820,17 @@ checkrtspprefix(struct Curl_easy *data, } if(CURLE_OK != Curl_convert_from_network(data, scratch, strlen(s)+1)) { /* Curl_convert_from_network calls failf if unsuccessful */ free(scratch); return FALSE; /* can't return CURLE_foobar so return FALSE */ result = FALSE; /* can't return CURLE_foobar so return FALSE */ } s = scratch; else result = checkprefix("RTSP/", scratch)? TRUE: FALSE; free(scratch); #else (void)data; /* unused */ result = checkprefix("RTSP/", s)? TRUE: FALSE; #endif /* CURL_DOES_CONVERSIONS */ if(checkprefix("RTSP/", s)) return TRUE; return FALSE; return result; } #endif /* CURL_DISABLE_RTSP */ Loading