View | Details | Raw Unified | Return to bug 65895
Collapse All | Expand All

(-)squid-2.4.STABLE6.orig/src/comm.c (-2 lines)
Lines 370-377 commConnectHandle(int fd, void *data) Link Here
370
	cs->S.sin_family =3D AF_INET;
370
	cs->S.sin_family =3D AF_INET;
371
	cs->S.sin_addr =3D cs->in_addr;
371
	cs->S.sin_addr =3D cs->in_addr;
372
	cs->S.sin_port =3D htons(cs->port);
372
	cs->S.sin_port =3D htons(cs->port);
373
	if (Config.onoff.log_fqdn)
374
	    fqdncache_gethostbyaddr(cs->S.sin_addr, FQDN_LOOKUP_IF_MISS);
375
    }
373
    }
376
    switch (comm_connect_addr(fd, &cs->S)) {
374
    switch (comm_connect_addr(fd, &cs->S)) {
377
    case COMM_INPROGRESS:
375
    case COMM_INPROGRESS:
(-)squid-2.4.STABLE6.orig/src/fqdncache.c (+2 lines)
Lines 278-283 fqdncacheParse(rfc1035_rr * answers, int Link Here
278
	    continue;
278
	    continue;
279
	if (answers[k].class !=3D RFC1035_CLASS_IN)
279
	if (answers[k].class !=3D RFC1035_CLASS_IN)
280
	    continue;
280
	    continue;
281
	if (!answers[k].rdata[0])
282
	    continue;
281
	na++;
283
	na++;
282
	f.flags.negcached =3D 0;
284
	f.flags.negcached =3D 0;
283
	f.names[0] =3D xstrdup(answers[k].rdata);
285
	f.names[0] =3D xstrdup(answers[k].rdata);
(-)squid-2.4.STABLE6.orig/src/ipcache.c (-1 / +6 lines)
Lines 306-311 ipcacheParse(rfc1035_rr * answers, int n Link Here
306
	    continue;
306
	    continue;
307
	if (answers[k].class !=3D RFC1035_CLASS_IN)
307
	if (answers[k].class !=3D RFC1035_CLASS_IN)
308
	    continue;
308
	    continue;
309
	if (answers[k].rdlength !=3D 4) {
310
	    debug(14, 1) ("ipcacheParse: Invalid IP address in response to query\=
311
	    continue;
312
	}
309
	na++;
313
	na++;
310
    }
314
    }
311
    if (na =3D=3D 0) {
315
    if (na =3D=3D 0) {
Lines 322-330 ipcacheParse(rfc1035_rr * answers, int n Link Here
322
	    continue;
326
	    continue;
323
	if (answers[k].class !=3D RFC1035_CLASS_IN)
327
	if (answers[k].class !=3D RFC1035_CLASS_IN)
324
	    continue;
328
	    continue;
329
	if (answers[k].rdlength !=3D 4)
330
	    continue;
325
	if (j =3D=3D 0)
331
	if (j =3D=3D 0)
326
	    i.expires =3D squid_curtime + answers[k].ttl;
332
	    i.expires =3D squid_curtime + answers[k].ttl;
327
	assert(answers[k].rdlength =3D=3D 4);
328
	xmemcpy(&i.addrs.in_addrs[j++], answers[k].rdata, 4);
333
	xmemcpy(&i.addrs.in_addrs[j++], answers[k].rdata, 4);
329
	debug(14, 3) ("ipcacheParse: #%d %s\n",
334
	debug(14, 3) ("ipcacheParse: #%d %s\n",
330
	    j - 1,
335
	    j - 1,

Return to bug 65895