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.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/source3/smbd/reply.c b/source3/smbd/reply.c
index cebb905a9e..4fbf179797 100644
--- a/source3/smbd/reply.c
+++ b/source3/smbd/reply.c
@@ -715,9 +715,13 @@ int reply_ioctl(connection_struct *conn,
return(UNIXERROR(ERRDOS,ERRbadfid));
}
SSVAL(p,0,fsp->rap_print_jobid); /* Job number */
- srvstr_push(outbuf, p+2, global_myname(), 15, STR_TERMINATE|STR_ASCII);
+ srvstr_push(outbuf, SVAL(outbuf, smb_flg2), p+2,
+ global_myname(), 15,
+ STR_TERMINATE|STR_ASCII);
if (conn) {
- srvstr_push(outbuf, p+18, lp_servicename(SNUM(conn)), 13, STR_TERMINATE|STR_ASCII);
+ srvstr_push(outbuf, SVAL(outbuf, smb_flg2),
+ p+18, lp_servicename(SNUM(conn)),
+ 13, STR_TERMINATE|STR_ASCII);
}
break;
}
@@ -1909,7 +1913,8 @@ int reply_ctemp(connection_struct *conn, char *inbuf,char *outbuf, int dum_size,
thing in the byte section. JRA */
SSVALS(p, 0, -1); /* what is this? not in spec */
#endif
- namelen = srvstr_push(outbuf, p, s, -1, STR_ASCII|STR_TERMINATE);
+ namelen = srvstr_push(outbuf, SVAL(outbuf, smb_flg2), p, s, -1,
+ STR_ASCII|STR_TERMINATE);
p += namelen;
outsize = set_message_end(inbuf,outbuf, p);
@@ -3903,7 +3908,8 @@ int reply_printqueue(connection_struct *conn,
SSVAL(p,5, queue[i].job);
SIVAL(p,7,queue[i].size);
SCVAL(p,11,0);
- srvstr_push(outbuf, p+12, queue[i].fs_user, 16, STR_ASCII);
+ srvstr_push(outbuf, SVAL(outbuf, smb_flg2), p+12,
+ queue[i].fs_user, 16, STR_ASCII);
p += 28;
}