Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 392979
Collapse All | Expand All

(-)gutils/gioftp.c.orig (+4 lines)
Lines 613-619 Link Here
613
    } else {
613
    } else {
614
	ftp = gcalloc(1,sizeof(struct ftpconnectiondata));
614
	ftp = gcalloc(1,sizeof(struct ftpconnectiondata));
615
	gc->connectiondata = (struct gio_connectiondata *) ftp;
615
	gc->connectiondata = (struct gio_connectiondata *) ftp;
616
#ifdef HAVE_PTHREAD_H
616
	pthread_mutex_lock(&stdfuncs->hostacccess_mutex);
617
	pthread_mutex_lock(&stdfuncs->hostacccess_mutex);
618
#endif
617
	for ( had=(struct ftphostaccessdata *) (addr->had); had!=NULL &&
619
	for ( had=(struct ftphostaccessdata *) (addr->had); had!=NULL &&
618
		(had->port!=port || had->protocol_index!=ftp_protocol_index);
620
		(had->port!=port || had->protocol_index!=ftp_protocol_index);
619
		had=had->next );
621
		had=had->next );
Lines 623-629 Link Here
623
	    had->protocol_index = ftp_protocol_index;
625
	    had->protocol_index = ftp_protocol_index;
624
	    had->tzoff = -9999;
626
	    had->tzoff = -9999;
625
	}
627
	}
628
#ifdef HAVE_PTHREAD_H
626
	pthread_mutex_unlock(&stdfuncs->hostacccess_mutex);
629
	pthread_mutex_unlock(&stdfuncs->hostacccess_mutex);
630
#endif
627
	ftp->ctl = ctl = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
631
	ftp->ctl = ctl = socket(PF_INET,SOCK_STREAM,IPPROTO_TCP);
628
	setnopipe(ctl);
632
	setnopipe(ctl);
629
	locaddr = addr->addr;
633
	locaddr = addr->addr;

Return to bug 392979