summaryrefslogtreecommitdiff
path: root/source3/libsmb/clidgram.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/libsmb/clidgram.c')
-rw-r--r--source3/libsmb/clidgram.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/libsmb/clidgram.c b/source3/libsmb/clidgram.c
index 70e97c6bb6..e7391734ea 100644
--- a/source3/libsmb/clidgram.c
+++ b/source3/libsmb/clidgram.c
@@ -162,7 +162,6 @@ int cli_get_response(BOOL unique, char *mailslot, char *buf, int bufsiz)
bcopy(&dgram->data[92], buf, MIN(bufsiz, (dgram->datasize - 92)));
- return 0;
}
else
return -1;
@@ -187,8 +186,8 @@ int cli_get_backup_list(const char *myname, const char *send_to_name)
}
- inet_aton("0.0.0.0", &my_ip);
-
+ bzero(&my_ip, 4); /* Cheap way to get 0.0.0.0 in there */
+
if (!resolve_name(myname, &my_ip, 0x00)) { /* FIXME: Call others here */
fprintf(stderr, "Could not resolve name: %s<00>\n", myname);
@@ -219,7 +218,7 @@ int cli_get_backup_list(const char *myname, const char *send_to_name)
cli_get_response(True, "\\MAILSLOT\\BROWSE", cli_backup_list, sizeof(cli_backup_list));
/* Should check the response here ... FIXME */
- return 0;
+
}
/*
@@ -235,5 +234,4 @@ int cli_get_backup_server(char *my_name, char *target, char *servername, int nam
strncpy(servername, cli_backup_list, MIN(16, namesize));
- return 0;
}