{
if(!data->conn || !rr)
return FALSE;
- return (data->conn && rr &&
- (!rr->target || !rr->target[0] ||
- (rr->target[0] == '.' && !rr->target[1])) &&
- (!rr->port_set || rr->port == data->conn->remote_port));
+ return (!rr->target || !rr->target[0] ||
+ (rr->target[0] == '.' && !rr->target[1])) &&
+ (!rr->port_set || rr->port == data->conn->remote_port);
}
#ifdef USE_ARES
size_t ipv6hints_len;
unsigned char alpns[MAX_HTTPSRR_ALPNS]; /* keytag = 1 */
/* store parsed alpnid entries in the array, end with ALPN_none */
- uint16_t port; /* -1 means not set */
+ uint16_t port;
uint16_t priority;
BIT(no_def_alpn); /* keytag = 2 */
BIT(mandatory); /* keytag = 0 */
dec->state = WS_DEC_INIT;
break;
default:
- /* we covered all enums above, but some code analyzers are whimps */
+ /* we covered all enums above, but some code analyzers are wimps */
result = CURLE_FAILED_INIT;
}
return result;
if(!GOOD_EASY_HANDLE(data))
return CURLE_BAD_FUNCTION_ARGUMENT;
+
if(data->set.ws_raw_mode) {
failf(data, "cannot curl_ws_start_frame() with CURLWS_RAW_MODE enabled");
return CURLE_FAILED_INIT;
goto out;
}
- if(data->set.ws_raw_mode) {
- failf(data, "[WS] cannot start frame in raw mode");
- result = CURLE_SEND_ERROR;
- goto out;
- }
-
if(ws->enc.payload_remain) {
failf(data, "[WS] previous frame not finished");
result = CURLE_SEND_ERROR;
/* Calculate the real upload size for VMS */
per->infd = -1;
if(curlx_stat(per->uploadfile, &fileinfo) == 0) {
- fileinfo.st_size = VmsSpecialSize(uploadfile, &fileinfo);
+ fileinfo.st_size = VmsSpecialSize(per->uploadfile, &fileinfo);
switch(fileinfo.st_fab_rfm) {
case FAB$C_VAR:
case FAB$C_VFC:
#ifdef __VMS
/* open file for output, forcing VMS output format into stream
mode which is needed for stat() call above to always work. */
- FILE *file = curlx_fopen(outfile, "ab",
+ FILE *file = curlx_fopen(per->outfile, "ab",
"ctx=stm", "rfm=stmlf", "rat=cr", "mrs=0");
#else
/* open file for output: */