Changelog
+Daniel S (25 March 2007)
+- Daniel Johnson fixed multi code to traverse the easy handle list properly.
+ A left-over bug from the February 21 fix.
+
Dan F (23 March 2007)
- Added --pubkey option to curl and made --key also work for SCP/SFTP,
plus made --pass work on an SSH private key as well.
return NULL; /* no messages left to return */
easy=multi->easy.next;
- while(easy) {
+ while(easy != &multi->easy) {
if(easy->msg_num) {
easy->msg_num--;
break;
int i;
fprintf(stderr, "* Multi status: %d handles, %d alive\n",
multi->num_easy, multi->num_alive);
- for(easy=multi->easy.next; easy; easy = easy->next) {
+ for(easy=multi->easy.next; easy != &multi->easy; easy = easy->next) {
if(easy->state != CURLM_STATE_COMPLETED) {
/* only display handles that are not completed */
fprintf(stderr, "handle %p, state %s, %d sockets\n",