mirror of
https://github.com/moparisthebest/curl
synced 2024-08-13 17:03:50 -04:00
gnutls: fix compiler warning
conversion to 'int' from 'long int' may alter its value
This commit is contained in:
parent
4da6e0c966
commit
f069b40f9d
@ -51,6 +51,7 @@
|
|||||||
#include "connect.h" /* for the connect timeout */
|
#include "connect.h" /* for the connect timeout */
|
||||||
#include "select.h"
|
#include "select.h"
|
||||||
#include "rawstr.h"
|
#include "rawstr.h"
|
||||||
|
#include "warnless.h"
|
||||||
|
|
||||||
#define _MPRINTF_REPLACE /* use our functions only */
|
#define _MPRINTF_REPLACE /* use our functions only */
|
||||||
#include <curl/mprintf.h>
|
#include <curl/mprintf.h>
|
||||||
@ -588,7 +589,7 @@ gtls_connect_step1(struct connectdata *conn,
|
|||||||
if(!strcmp(err, GNUTLS_SRP)) {
|
if(!strcmp(err, GNUTLS_SRP)) {
|
||||||
/* This GnuTLS was probably compiled without support for SRP.
|
/* This GnuTLS was probably compiled without support for SRP.
|
||||||
* Note that fact and try again without it. */
|
* Note that fact and try again without it. */
|
||||||
int validprioritylen = err - prioritylist;
|
int validprioritylen = curlx_uztosi(err - prioritylist);
|
||||||
char *prioritycopy = strdup(prioritylist);
|
char *prioritycopy = strdup(prioritylist);
|
||||||
if(!prioritycopy)
|
if(!prioritycopy)
|
||||||
return CURLE_OUT_OF_MEMORY;
|
return CURLE_OUT_OF_MEMORY;
|
||||||
|
Loading…
Reference in New Issue
Block a user