X-Git-Url: http://git.samba.org/?a=blobdiff_plain;f=source%2Fpython%2Fpy_srvsvc.c;h=94f4271674420665b658322add61ce4b97f7b01a;hb=ba8c48244e140403b728d9a2ca297b40e8888964;hp=3e5a42be23459e13eb7c5cc46fb77e6333774238;hpb=0308a0a11265050f53fc7e8e03f8e17b04adb45d;p=samba.git diff --git a/source/python/py_srvsvc.c b/source/python/py_srvsvc.c index 3e5a42be234..94f42716744 100644 --- a/source/python/py_srvsvc.c +++ b/source/python/py_srvsvc.c @@ -5,7 +5,7 @@ This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -14,8 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + along with this program. If not, see . */ #include "python/py_srvsvc.h" @@ -93,7 +92,7 @@ PyObject *srvsvc_netservergetinfo(PyObject *self, PyObject *args, return NULL; } - server = strdup(unc_name + 2); + server = SMB_STRDUP(unc_name + 2); if (strchr(server, '\\')) { char *c = strchr(server, '\\'); @@ -120,7 +119,7 @@ PyObject *srvsvc_netservergetinfo(PyObject *self, PyObject *args, ZERO_STRUCT(ctr); - status = cli_srvsvc_net_srv_get_info(cli, mem_ctx, level, &ctr); + status = rpccli_srvsvc_net_srv_get_info(cli->pipe_list, mem_ctx, level, &ctr); if (!NT_STATUS_IS_OK(status)) { PyErr_SetObject(srvsvc_error, py_werror_tuple(status));