Lines 1-60
Link Here
|
1 |
0001-s3-Fix-another-aspect-of-bug-7262.patch |
1 |
--- a/lib/util/util_net.c 2011-03-06 13:48:05.000000000 -0500 |
2 |
samba3-3.4-honor-all-loopback-ips.patch |
2 |
+++ b/lib/util/util_net.c 2011-06-01 18:35:34.000000000 -0400 |
3 |
|
3 |
@@ -351,13 +351,11 @@ |
4 |
From 325f03d3df7afb758b6815d327739fc121dbbe71 Mon Sep 17 00:00:00 2001 |
|
|
5 |
From: Volker Lendecke <vl@samba.org> |
6 |
Date: Tue, 6 Jul 2010 16:55:14 +0200 |
7 |
Subject: [PATCH] s3: Fix another aspect of bug 7262 and make paged results work again |
8 |
--- |
9 |
source3/passdb/pdb_ldap.c | 8 ++++---- |
10 |
1 files changed, 4 insertions(+), 4 deletions(-) |
11 |
|
12 |
diff --git a/source3/passdb/pdb_ldap.c b/source3/passdb/pdb_ldap.c |
13 |
index 6ac8f0d..f4c8dbe 100644 |
14 |
--- a/source3/passdb/pdb_ldap.c |
15 |
+++ b/source3/passdb/pdb_ldap.c |
16 |
@@ -4483,10 +4483,6 @@ static bool ldapsam_search_next_entry(struct pdb_search *search, |
17 |
bool result; |
18 |
|
19 |
retry: |
20 |
- if (state->current_entry == NULL) { |
21 |
- return false; |
22 |
- } |
23 |
- |
24 |
if ((state->entries == NULL) && (state->pagedresults_cookie == NULL)) |
25 |
return False; |
26 |
|
27 |
@@ -4494,6 +4490,10 @@ static bool ldapsam_search_next_entry(struct pdb_search *search, |
28 |
!ldapsam_search_nextpage(search)) |
29 |
return False; |
30 |
|
31 |
+ if (state->current_entry == NULL) { |
32 |
+ return false; |
33 |
+ } |
34 |
+ |
35 |
result = state->ldap2displayentry(state, search, |
36 |
state->connection->ldap_struct, |
37 |
state->current_entry, entry); |
38 |
-- |
39 |
1.6.0.4 |
40 |
|
41 |
commit b6afe7ef236a454d8a6abf104b8846f817378f73 |
42 |
Author: Björn Jacke <bj@sernet.de> |
43 |
Date: Thu Oct 15 02:02:30 2009 +0200 |
44 |
|
45 |
util: cope the all loopback addresses IPv4 knows |
46 |
|
47 |
The fact that we just recogniced 127.0.0.1 as loopback IP address and not the |
48 |
rest of the 127.0.0.0/8 IP address range we used the lo interface for sending |
49 |
packages even though we should send them to some more physical interface. This |
50 |
way we ended up with failing WINS registration and so on like in #6348. |
51 |
On the lo interface sendto() returned "Invalid Argument" (EINVAL). |
52 |
|
53 |
diff --git a/lib/util/util_net.c b/lib/util/util_net.c |
54 |
index 0ce495e..0511a28 100644 |
55 |
--- a/lib/util/util_net.c |
56 |
+++ b/lib/util/util_net.c |
57 |
@@ -351,13 +351,11 @@ bool is_broadcast_addr(const struct sockaddr *pss) |
58 |
} |
4 |
} |
59 |
|
5 |
|
60 |
/** |
6 |
/** |