diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c index b152ca59ee4..ead59ebfc2e 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));