Bugzilla – Attachment 15402 Details for
Bug 48346
VUL-0: CVE-2003-0914: vulnerability in bind8
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
IDP Log In
|
Forgot Password
[patch]
cachenegative patch for bind8.
bind-chroot-8.2.6-CAN-2003-0914-gd-1.diff (text/plain), 1.66 KB, created by
Roman Drahtmueller
on 2003-11-26 22:02:00 UTC
(
hide
)
Description:
cachenegative patch for bind8.
Filename:
MIME Type:
Creator:
Roman Drahtmueller
Created:
2003-11-26 22:02:00 UTC
Size:
1.66 KB
patch
obsolete
>diff -Naur bind-chroot-8.2.6-1.5.2/src/bin/named/ns_resp.c bind-chroot-8.2.6-1.5.2.rwm/src/bin/named/ns_resp.c >--- bind-chroot-8.2.6-1.5.2/src/bin/named/ns_resp.c Wed Nov 26 08:42:29 2003 >+++ bind-chroot-8.2.6-1.5.2.rwm/src/bin/named/ns_resp.c Wed Nov 26 08:48:50 2003 >@@ -280,7 +280,7 @@ > u_int qtype, qclass; > int restart; /* flag for processing cname response */ > int validanswer, dbflags; >- int cname, lastwascname, externalcname; >+ int cname, lastwascname, externalcname, cachenegative; > int count, founddata, foundname; > int buflen; > int newmsglen; >@@ -905,6 +905,7 @@ > cname = 0; > lastwascname = 0; > externalcname = 0; >+ cachenegative = 1; > strcpy(aname, qname); > > if (count) { >@@ -974,6 +975,7 @@ > name); > db_freedata(dp); > validanswer = 0; >+ cachenegative = 0; > continue; > } > if (type == T_CNAME && >@@ -1004,6 +1006,7 @@ > "last was cname, ignoring auth. and add."); > db_freedata(dp); > validanswer = 0; >+ cachenegative = 0; > break; > } > if (i < arfirst) { >@@ -1019,6 +1022,7 @@ > sin_ntoa(from)); > db_freedata(dp); > validanswer = 0; >+ cachenegative = 0; > continue; > } else if (!ns_samedomain(name, > qp->q_domain)) { >@@ -1032,6 +1036,7 @@ > sin_ntoa(from)); > db_freedata(dp); > validanswer = 0; >+ cachenegative = 0; > continue; > } > if (type == T_NS) { >@@ -1210,8 +1215,9 @@ > ) > ) > { >- cache_n_resp(msg, msglen, from, qp->q_name, >- qp->q_class, qp->q_type); >+ if (cachenegative) >+ cache_n_resp(msg, msglen, from, qp->q_name, >+ qp->q_class, qp->q_type); > > if (!qp->q_cmsglen) { > ns_debug(ns_log_default, 3,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
Actions:
View
|
Diff
Attachments on
bug 48346
: 15402