FreeBSD Bugzilla – Attachment 150065 Details for
Bug 195552
[patch] fix AF_UNSPEC handling in casper DNS limits
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
0001-Fix-handling-of-AF_UNSPEC-in-family-rights-check.patch (text/plain), 891 bytes, created by
mp39590
on 2014-12-01 11:54:51 UTC
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
mp39590
Created:
2014-12-01 11:54:51 UTC
Size:
891 bytes
patch
obsolete
>>From ba2e67b4d4e545638522791fd17f6a5199ea39a3 Mon Sep 17 00:00:00 2001 >From: Mikhail <mp39590@gmail.com> >Date: Wed, 26 Nov 2014 00:49:24 +0300 >Subject: [PATCH] Fix handling of AF_UNSPEC in family rights check > >--- > libexec/casper/dns/dns.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git libexec/casper/dns/dns.c libexec/casper/dns/dns.c >index 08f7560..68d01bf 100644 >--- libexec/casper/dns/dns.c >+++ libexec/casper/dns/dns.c >@@ -85,9 +85,9 @@ dns_allowed_family(const nvlist_t *limits, int family) > while ((name = nvlist_next(limits, NULL, &cookie)) != NULL) { > if (strncmp(name, "family", sizeof("family") - 1) != 0) > continue; >+ if (name == AF_UNSPEC) >+ return (true); > nofamilies = false; >- if (family == AF_UNSPEC) >- continue; > if (nvlist_get_number(limits, name) == (uint64_t)family) > return (true); > } >-- >2.1.2 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 195552
: 150065