mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Correct some non-exploitable format string errors and an extraneous
format string argument.
This commit is contained in:
parent
467e874a69
commit
59b5400650
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=60737
27
ftp/curl/files/patch-lib::ftp.c
Normal file
27
ftp/curl/files/patch-lib::ftp.c
Normal file
@ -0,0 +1,27 @@
|
||||
--- lib/ftp.c.orig Thu Jun 6 17:12:12 2002
|
||||
+++ lib/ftp.c Thu Jun 6 17:13:28 2002
|
||||
@@ -1067,13 +1067,13 @@
|
||||
}
|
||||
freeaddrinfo(res);
|
||||
if (portsock < 0) {
|
||||
- failf(data, strerror(errno));
|
||||
+ failf(data, "%s", strerror(errno));
|
||||
return CURLE_FTP_PORT_FAILED;
|
||||
}
|
||||
|
||||
sslen = sizeof(ss);
|
||||
if (getsockname(portsock, sa, &sslen) < 0) {
|
||||
- failf(data, strerror(errno));
|
||||
+ failf(data, "%s", strerror(errno));
|
||||
return CURLE_FTP_PORT_FAILED;
|
||||
}
|
||||
|
||||
@@ -1370,7 +1370,7 @@
|
||||
|
||||
for (modeoff = (data->set.ftp_use_epsv?0:1);
|
||||
mode[modeoff]; modeoff++) {
|
||||
- result = Curl_ftpsendf(conn, mode[modeoff]);
|
||||
+ result = Curl_ftpsendf(conn, "%s", mode[modeoff]);
|
||||
if(result)
|
||||
return result;
|
||||
nread = Curl_GetFTPResponse(buf, conn, &ftpcode);
|
11
ftp/curl/files/patch-lib::ldap.c
Normal file
11
ftp/curl/files/patch-lib::ldap.c
Normal file
@ -0,0 +1,11 @@
|
||||
--- lib/ldap.c.orig Thu Jun 6 17:14:16 2002
|
||||
+++ lib/ldap.c Thu Jun 6 17:14:24 2002
|
||||
@@ -147,7 +147,7 @@
|
||||
int ldaptext;
|
||||
struct SessionHandle *data=conn->data;
|
||||
|
||||
- infof(data, "LDAP: %s %s\n", data->change.url);
|
||||
+ infof(data, "LDAP: %s\n", data->change.url);
|
||||
|
||||
DynaOpen();
|
||||
if (libldap == NULL) {
|
Loading…
Reference in New Issue
Block a user