git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
74cd692
)
r17239: BUG 3959: patch from William Charles <william@charles.name> to fix a segv...
author
Gerald Carter
<jerry@samba.org>
Tue, 25 Jul 2006 19:59:35 +0000
(19:59 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 16:38:21 +0000
(11:38 -0500)
(This used to be commit
be12519fd8a7ccd8400fd298e05921eda56b4e16
)
source3/libads/dns.c
patch
|
blob
|
history
diff --git
a/source3/libads/dns.c
b/source3/libads/dns.c
index 570f9583f026bc3093bec9b3f568892d1212d315..558c7f75bad63ffe81999e565cbfb530670415ee 100644
(file)
--- a/
source3/libads/dns.c
+++ b/
source3/libads/dns.c
@@
-245,17
+245,11
@@
static BOOL ads_dns_parse_rr_ns( TALLOC_CTX *ctx, uint8 *start, uint8 *end,
static int dnssrvcmp( struct dns_rr_srv *a, struct dns_rr_srv *b )
{
- BOOL init = False;
-
- if ( !init ) {
- srand( (uint32)time(NULL) );
- }
-
if ( a->priority == b->priority ) {
/* randomize entries with an equal weight and priority */
if ( a->weight == b->weight )
- return
rand() % 2 ? -1 : 1
;
+ return
0
;
/* higher weights should be sorted lower */
if ( a->weight > b->weight )