summaryrefslogtreecommitdiffstats
path: root/source/smbd/reply.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2005-02-01 02:06:00 +0000
committerJeremy Allison <jra@samba.org>2005-02-01 02:06:00 +0000
commite3b94dcc9518f504d35d9088f8beda51d8d1111b (patch)
tree388fd22c7428c5c0ead1c197cfa85186459dbefd /source/smbd/reply.c
parent48422f649b9db84e45e8d25d1c18ffcb6cebf29f (diff)
downloadsamba-e3b94dcc9518f504d35d9088f8beda51d8d1111b.tar.gz
samba-e3b94dcc9518f504d35d9088f8beda51d8d1111b.tar.xz
samba-e3b94dcc9518f504d35d9088f8beda51d8d1111b.zip
r5154: Tidy up interface a little.
Jeremy.
Diffstat (limited to 'source/smbd/reply.c')
-rw-r--r--source/smbd/reply.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source/smbd/reply.c b/source/smbd/reply.c
index c9e35e6a6a8..899dba56d86 100644
--- a/source/smbd/reply.c
+++ b/source/smbd/reply.c
@@ -899,7 +899,10 @@ int reply_search(connection_struct *conn, char *inbuf,char *outbuf, int dum_size
END_PROFILE(SMBsearch);
return ERROR_DOS(ERRDOS,ERRnofids);
}
- dptr_set_wcard_and_attributes(dptr_num, SMB_STRDUP(mask), dirtype);
+ if (!dptr_set_wcard_and_attributes(dptr_num, mask, dirtype)) {
+ END_PROFILE(SMBsearch);
+ return ERROR_DOS(ERRDOS,ERRnomem);
+ }
} else {
dirtype = dptr_attr(dptr_num);
}