summaryrefslogtreecommitdiff
path: root/source3/client/smbctool.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/client/smbctool.c')
-rw-r--r--source3/client/smbctool.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source3/client/smbctool.c b/source3/client/smbctool.c
index c368f7a193..6c89f5ea82 100644
--- a/source3/client/smbctool.c
+++ b/source3/client/smbctool.c
@@ -544,19 +544,17 @@ static void adjust_do_list_queue(void)
static void add_to_do_list_queue(const char* entry)
{
- char *dlq;
long new_end = do_list_queue_end + ((long)strlen(entry)) + 1;
while (new_end > do_list_queue_size) {
do_list_queue_size *= 2;
DEBUG(4,("enlarging do_list_queue to %d\n",
(int)do_list_queue_size));
- dlq = SMB_REALLOC(do_list_queue, do_list_queue_size);
- if (! dlq) {
+ do_list_queue = SMB_REALLOC(do_list_queue, do_list_queue_size);
+ if (!do_list_queue) {
d_printf("failure enlarging do_list_queue to %d bytes\n",
(int)do_list_queue_size);
reset_do_list_queue();
} else {
- do_list_queue = dlq;
memset(do_list_queue + do_list_queue_size / 2,
0, do_list_queue_size / 2);
}