summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2002-03-12 18:47:27 +0000
committerAndrew Tridgell <tridge@samba.org>2002-03-12 18:47:27 +0000
commitf36deb7b21529a64a4e15789d98d7188298d129c (patch)
treea63cbec58c7ed1e07054694ca7f50bbafac8b4fe /source3
parent34dd5443433c5ea3102c98e137aeed3751b87b1b (diff)
downloadsamba-f36deb7b21529a64a4e15789d98d7188298d129c.tar.gz
samba-f36deb7b21529a64a4e15789d98d7188298d129c.tar.bz2
samba-f36deb7b21529a64a4e15789d98d7188298d129c.zip
get the test for disconnection the right way around!
(This used to be commit ed80311b41f9869084d1e510cd8fd4213c3a1c19)
Diffstat (limited to 'source3')
-rw-r--r--source3/nsswitch/winbindd_misc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c
index b177c26796..81adcc373e 100644
--- a/source3/nsswitch/winbindd_misc.c
+++ b/source3/nsswitch/winbindd_misc.c
@@ -163,11 +163,11 @@ enum winbindd_result winbindd_show_sequence(struct winbindd_cli_state *state)
domain->methods->sequence_number(domain, &domain->sequence_number);
if (DOM_SEQUENCE_NONE == (unsigned)domain->sequence_number) {
- asprintf(&s,"%s%s : %u\n", extra_data,
- domain->name, (unsigned)domain->sequence_number);
- } else {
asprintf(&s,"%s%s : DISCONNECTED\n", extra_data,
domain->name);
+ } else {
+ asprintf(&s,"%s%s : %u\n", extra_data,
+ domain->name, (unsigned)domain->sequence_number);
}
free(extra_data);
extra_data = s;