diff options
author | Jeremy Allison <jra@samba.org> | 2000-05-15 21:38:03 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2000-05-15 21:38:03 +0000 |
commit | 210f11d0e346db3c38d4d4f19cf77773537c9560 (patch) | |
tree | b73537d22dc0a5fde6a4c48610658f3f766bc685 /source3/rpc_server | |
parent | ad9a3a16e000e25693508e0b2eac280f7593d095 (diff) | |
download | samba-210f11d0e346db3c38d4d4f19cf77773537c9560.tar.gz samba-210f11d0e346db3c38d4d4f19cf77773537c9560.tar.bz2 samba-210f11d0e346db3c38d4d4f19cf77773537c9560.zip |
Check error returns.
Jeremy.
(This used to be commit 919d49b58ad8213c0e89948f560d816b20312bb2)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_wkssvc.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/rpc_server/srv_wkssvc.c b/source3/rpc_server/srv_wkssvc.c index 2d2045dc1c..a09250a80b 100644 --- a/source3/rpc_server/srv_wkssvc.c +++ b/source3/rpc_server/srv_wkssvc.c @@ -56,7 +56,7 @@ static void create_wks_info_100(WKS_INFO_100 *inf) only supports info level 100 at the moment. ********************************************************************/ -static void wks_reply_query_info(WKS_Q_QUERY_INFO *q_u, +static BOOL wks_reply_query_info(WKS_Q_QUERY_INFO *q_u, prs_struct *rdata, int status) { @@ -69,9 +69,12 @@ static void wks_reply_query_info(WKS_Q_QUERY_INFO *q_u, init_wks_r_query_info(&r_u, q_u->switch_value, &wks100, status); /* store the response in the SMB stream */ - wks_io_r_query_info("", &r_u, rdata, 0); + if(!wks_io_r_query_info("", &r_u, rdata, 0)) + return False; DEBUG(5,("wks_query_info: %d\n", __LINE__)); + + return True; } /******************************************************************* @@ -82,10 +85,12 @@ static BOOL api_wks_query_info(prs_struct *data, prs_struct *rdata) WKS_Q_QUERY_INFO q_u; /* grab the net share enum */ - wks_io_q_query_info("", &q_u, data, 0); + if(!wks_io_q_query_info("", &q_u, data, 0)) + return False; /* construct reply. always indicate success */ - wks_reply_query_info(&q_u, rdata, 0x0); + if(!wks_reply_query_info(&q_u, rdata, 0x0)) + return False; return True; } |