Author: vlendec Date: 2007-08-05 10:17:58 +0000 (Sun, 05 Aug 2007) New Revision: 24238
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=24238 Log: Push down reply_prep_legacy one level Modified: branches/SAMBA_3_2/source/smbd/ipc.c Changeset: Modified: branches/SAMBA_3_2/source/smbd/ipc.c =================================================================== --- branches/SAMBA_3_2/source/smbd/ipc.c 2007-08-05 10:04:11 UTC (rev 24237) +++ branches/SAMBA_3_2/source/smbd/ipc.c 2007-08-05 10:17:58 UTC (rev 24238) @@ -379,17 +379,17 @@ int suwcnt, int tdscnt,int tpscnt, int msrcnt, int mdrcnt, int mprcnt) { - char *inbuf, *outbuf; - int size, bufsize; - DEBUG(3,("named pipe command on <%s> name\n", name)); - if (!reply_prep_legacy(req, &inbuf, &outbuf, &size, &bufsize)) { - reply_nterror(req, NT_STATUS_NO_MEMORY); - return; - } + if (strequal(name,"LANMAN")) { + char *inbuf, *outbuf; + int size, bufsize; - if (strequal(name,"LANMAN")) { + if (!reply_prep_legacy(req, &inbuf, &outbuf, &size, &bufsize)) { + reply_nterror(req, NT_STATUS_NO_MEMORY); + return; + } + reply_post_legacy( req, api_reply(conn, vuid, inbuf, outbuf, @@ -404,7 +404,16 @@ strequal(name,"WINREG") || strequal(name,"SAMR") || strequal(name,"LSARPC")) { + char *inbuf, *outbuf; + int size, bufsize; + DEBUG(4,("named pipe command from Win95 (wow!)\n")); + + if (!reply_prep_legacy(req, &inbuf, &outbuf, &size, &bufsize)) { + reply_nterror(req, NT_STATUS_NO_MEMORY); + return; + } + reply_post_legacy( req, api_fd_reply(conn, vuid, inbuf, outbuf, @@ -415,6 +424,14 @@ } if (strlen(name) < 1) { + char *inbuf, *outbuf; + int size, bufsize; + + if (!reply_prep_legacy(req, &inbuf, &outbuf, &size, &bufsize)) { + reply_nterror(req, NT_STATUS_NO_MEMORY); + return; + } + reply_post_legacy( req, api_fd_reply(conn, vuid, inbuf, outbuf,
