1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-10 11:35:07 -05:00
Commit Graph

2224 Commits

Author SHA1 Message Date
Daniel Stenberg
4af08a19f8 passing in a very long interface name could make a buffer overflow 2004-06-30 11:48:19 +00:00
Daniel Stenberg
c7a9e07909 simplified the check for when to free() the buf data 2004-06-30 11:32:16 +00:00
Daniel Stenberg
185baf036b NOBODY set TRUE after a POST makes a good HEAD now 2004-06-30 11:09:16 +00:00
Daniel Stenberg
ba40eccc90 make the SSL connect use the same default connect timeout define as the
generic connect uses
2004-06-30 09:22:48 +00:00
Daniel Stenberg
7a52f44bd4 Gisle fixed a bad free from the resolve reorg, I changed type of the buf
variable to sort out some compiler warnings.
2004-06-29 18:44:59 +00:00
Daniel Stenberg
efa5485744 Gisle's djgpp updates 2004-06-29 18:43:56 +00:00
Daniel Stenberg
808621ab22 corrected the Curl_is_connected() proto 2004-06-29 11:21:05 +00:00
Daniel Stenberg
6ed5feda2b First attempt at making the multi interface work when connecting to a host
that resolves to multiple IP addresses.
2004-06-29 11:20:07 +00:00
Daniel Stenberg
b0cd96478c oops 5 bytes makes 4 letters plus zero byte 2004-06-24 15:15:27 +00:00
Daniel Stenberg
387ec712e6 fix warning 2004-06-24 15:06:25 +00:00
Daniel Stenberg
f2a99d7d74 the _num_chars() function is not used, removing 2004-06-24 15:05:39 +00:00
Daniel Stenberg
8b6b15dccc to prevent compier warnings, we only declare len if we have code
that uses it
2004-06-24 14:52:51 +00:00
Daniel Stenberg
785bad388b Gisle cleaned up remaining host resolve re-org issues 2004-06-24 14:39:52 +00:00
Daniel Stenberg
cf10df6c68 include header for our printfs 2004-06-24 14:35:45 +00:00
Daniel Stenberg
5b55dcbfbb reverted bad win32 fix 2004-06-24 14:34:13 +00:00
Gunter Knauf
e7dbbd16a5 fixed the MSVC build. 2004-06-24 13:49:14 +00:00
Daniel Stenberg
62f0457961 length limit the sscanf() parsing to prevent buffer overflow 2004-06-24 12:07:36 +00:00
Daniel Stenberg
8879b57b73 ah, simplified my latest change more 2004-06-24 12:01:20 +00:00
Daniel Stenberg
e49a6feabb fix for systems without gethostbyname_r() 2004-06-24 11:58:43 +00:00
Daniel Stenberg
feb2dd2835 Replaced all uses of sprintf() with the safer snprintf(). It is just a
precaution to prevent mistakes to lead to buffer overflows.
2004-06-24 11:54:11 +00:00
Daniel Stenberg
5e34f3dc01 made the Curl_he2ai() take the port number as an int intead, to avoid lots
of typecasts all over
2004-06-24 10:43:50 +00:00
Daniel Stenberg
0031d76f2a use snprintf() to be on the safe side 2004-06-24 10:43:22 +00:00
Daniel Stenberg
00ee738fdd typecasts to prevent warnings 2004-06-24 09:14:59 +00:00
Daniel Stenberg
8d0a823124 only use sockaddr_in6 on ipv6-enabled hosts 2004-06-24 09:13:50 +00:00
Daniel Stenberg
cdb419d65e typecast to prevent warning 2004-06-24 08:31:17 +00:00
Daniel Stenberg
d6f9a41539 use Curl_addrinfo, not 'struct addrinfo' 2004-06-24 08:30:39 +00:00
Daniel Stenberg
1daa258b8a fixed problems I missed to fix from my cleanup 2004-06-24 08:09:54 +00:00
Daniel Stenberg
560c257bd0 prevent warning 2004-06-24 08:08:28 +00:00
Daniel Stenberg
c39858aac0 Source cleanups. The major one being that we now _always_ use a Curl_addrinfo
linked list for name resolved data, even on hosts/systems with only IPv4
stacks as this simplifies a lot of code.
2004-06-24 07:43:48 +00:00
Daniel Stenberg
818aed35e2 static functions are better not Curl_ prefixed to make their static
status more obvious
2004-06-23 09:08:03 +00:00
Daniel Stenberg
2ed524f07e When adding the return -1 to prevent warnings on some compilers, others
started complaining since it won't be reached... So I removed the call to
abort() and just return -1 instead. abort() was wrong to call anyway since
this is a library!
2004-06-23 06:17:17 +00:00
Daniel Stenberg
5f1eefd03f prevent a warning 2004-06-23 06:14:23 +00:00
Gunter Knauf
522b4d7576 one copy&paste too much, removed the define again. 2004-06-22 23:56:19 +00:00
Gunter Knauf
d6dcb08407 argh - copy&paste error. 2004-06-22 23:22:37 +00:00
Gunter Knauf
806c756a2d syncronized with recent getdate.y updates. 2004-06-22 23:04:57 +00:00
Daniel Stenberg
2494701347 the hostname variable wasn't assigned and we no longer use it 2004-06-22 21:25:53 +00:00
Daniel Stenberg
35558e6bd7 David Cohen pointed out that RFC2109 says clients should allow cookies to
contain least 4096 bytes while libcurl only allowed 2047. I raised the limit
to 4999 now and made the used buffer get malloc()ed instead of simply
allocated on stack as before.
2004-06-22 21:15:51 +00:00
Daniel Stenberg
7659747e6f Günter Knauf fixed getdate.y to remove a few warnings. I removed the
ifdef'ed test we never ever use anyway.
2004-06-22 21:12:34 +00:00
Daniel Stenberg
d73425061a Moved the "About to connect() to" text to the place where the host name is
actually known, as before this text lied when used in i.e FTP.
2004-06-22 15:23:01 +00:00
Daniel Stenberg
76920413d9 Gisle fixed the wildcard checks for certificates. 2004-06-22 08:51:22 +00:00
Daniel Stenberg
44d9a8ba4e Gunter's fix to avoid the notorious YYSTACK_USE_ALLOCA warning we get on
several platforms/compilers/yacc versions.
2004-06-22 07:27:43 +00:00
Daniel Stenberg
dca6386234 pass an int pointer when it expects an int pointer... 2004-06-22 06:50:41 +00:00
Daniel Stenberg
8e28721057 The read callback can now return CURL_READFUNC_ABORT to stop a transfer. 2004-06-21 14:07:38 +00:00
Daniel Stenberg
29c546b426 typecasts to prevent compiler warnings 2004-06-21 08:37:53 +00:00
Daniel Stenberg
cd7a0f829f When doing auth negotiations or authprobing, we only consider HTTP code
<300 to be good.
2004-06-19 10:10:24 +00:00
Daniel Stenberg
cf3f1ef284 prevent compiler warning 2004-06-19 09:38:08 +00:00
Daniel Stenberg
bd3d5a17b4 Gisle's "SSL patch" from June 16th 2004, modified by me as discussed on the
mailing list.
2004-06-18 06:20:43 +00:00
Daniel Stenberg
d4b577114b With David Byron's test server I could repeat his problem and make sure that
POSTing over HTTPS:// with NTLM works fine now. There was a general problem
with multi-pass authentication with non-GET operations with CONNECT.
2004-06-18 06:15:26 +00:00
Daniel Stenberg
05baf94b43 Keep the upload byte counter in an curl_off_t, not an int. 32bits is not
enough. This is most likely the bug Jean-Louis Lemaire reported that makes
2GB FTP uploads to report error when completed.
Also padded comments to get them aligned again, only for visibility.
2004-06-16 09:28:47 +00:00
Daniel Stenberg
a76288b99a Alexander Krasnostavsky fixed a flaw in the 3rd party transfer code that
didn't properly check return code.
2004-06-16 09:05:22 +00:00