summaryrefslogtreecommitdiff
path: root/source3/smbd/reply.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/smbd/reply.c')
-rw-r--r--source3/smbd/reply.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index b152ca59ee..ead59ebfc2 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -1333,7 +1333,7 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
}
return(ERROR(ERRDOS,ERRnofids));
}
- dptr_set_wcard(dptr_num, mask);
+ dptr_set_wcard(dptr_num, strdup(mask));
}
DEBUG(4,("dptr_num is %d\n",dptr_num));