summaryrefslogtreecommitdiff
path: root/source3/nsswitch
diff options
context:
space:
mode:
Diffstat (limited to 'source3/nsswitch')
-rw-r--r--source3/nsswitch/wbinfo.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/source3/nsswitch/wbinfo.c b/source3/nsswitch/wbinfo.c
index bd5c6392f1..26ae2aff89 100644
--- a/source3/nsswitch/wbinfo.c
+++ b/source3/nsswitch/wbinfo.c
@@ -423,7 +423,14 @@ static BOOL wbinfo_show_sequence(const char *domain)
/* Display response */
- if (response.extra_data.data) {
+ if (domain) {
+ d_printf("%s : ", domain);
+ if (response.data.sequence_number == (uint32_t)-1) {
+ d_printf("DISCONNECTED\n");
+ } else {
+ d_printf("%d\n", response.data.sequence_number);
+ }
+ } else if (response.extra_data.data) {
char *extra_data = (char *)response.extra_data.data;
d_printf("%s", extra_data);
SAFE_FREE(response.extra_data.data);