version 1.9.2.15, 2012/05/16 12:24:31
|
version 1.9.2.16, 2012/05/16 13:17:51
|
Line 706 rpc_srv_initServer(u_int regProgID, u_char regProcID,
|
Line 706 rpc_srv_initServer(u_int regProgID, u_char regProcID,
|
else |
else |
netBuf = io_align(netBuf, 1); /* align netBuf length */ |
netBuf = io_align(netBuf, 1); /* align netBuf length */ |
|
|
|
#ifdef HAVE_SRANDOMDEV |
|
srandomdev(); |
|
#else |
|
time_t tim; |
|
|
|
srandom((time(&tim) ^ getpid())); |
|
#endif |
|
|
srv = malloc(sizeof(rpc_srv_t)); |
srv = malloc(sizeof(rpc_srv_t)); |
if (!srv) { |
if (!srv) { |
LOGERR; |
LOGERR; |
Line 791 rpc_srv_endServer(rpc_srv_t ** __restrict psrv)
|
Line 799 rpc_srv_endServer(rpc_srv_t ** __restrict psrv)
|
register int i; |
register int i; |
rpc_func_t *f, *tmp; |
rpc_func_t *f, *tmp; |
|
|
if (!psrv || !*psrv) { | if (!psrv || !*psrv) |
rpc_SetErr(EINVAL, "Can`t destroy server because parameter is null!"); | |
return; |
return; |
} |
|
|
|
if (!(*psrv)->srv_blob.kill) |
if (!(*psrv)->srv_blob.kill) |
rpc_srv_endBLOBServer(*psrv); |
rpc_srv_endBLOBServer(*psrv); |