1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-19 18:50:24 +03:00

hte timed_out variable needs to be static and can not be on the stack

since if the command times out and we return from ctdb_control   we may 
have events that can trigger later which will overwrite data that is no 
longer in our stackframe

(This used to be ctdb commit 93942543092be618c0bd8ef68b470b0789bad7ad)
This commit is contained in:
Ronnie Sahlberg 2007-05-06 07:07:47 +10:00
parent c6bd23ee11
commit 4f2cdc2d8b

View File

@ -678,7 +678,7 @@ int ctdb_control(struct ctdb_context *ctdb, uint32_t destnode, uint64_t srvid,
struct ctdb_req_control *c;
size_t len;
int ret;
uint32_t timed_out;
static uint32_t timed_out;
/* if the domain socket is not yet open, open it */
if (ctdb->daemon.sd==-1) {