diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-18 23:27:58 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:28 -0500 |
commit | f8391489bfbeea20e450b9ec7640c3e04c713ced (patch) | |
tree | 37fb5d2275a516ec1f54e42f7b003dae073c9481 /source4/libnet/libnet.c | |
parent | 552c0111a10c70d2ca24c996838d41d79494969f (diff) | |
download | samba-f8391489bfbeea20e450b9ec7640c3e04c713ced.tar.gz samba-f8391489bfbeea20e450b9ec7640c3e04c713ced.tar.bz2 samba-f8391489bfbeea20e450b9ec7640c3e04c713ced.zip |
r11794: - fixed a valgrind error in libnet, caused by using a stack variable
after the function has returned (the *address variable was assigned
into the state).
- changed libnet to use event_context_find() instead of
event_context_init(), so it works as a child of existing code that
uses a event context
(This used to be commit 47ceb2d3558304b4c4fb00582fb25a885cea2ef5)
Diffstat (limited to 'source4/libnet/libnet.c')
-rw-r--r-- | source4/libnet/libnet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/libnet/libnet.c b/source4/libnet/libnet.c index 604a2aaca4..b7b18b7417 100644 --- a/source4/libnet/libnet.c +++ b/source4/libnet/libnet.c @@ -38,7 +38,7 @@ struct libnet_context *libnet_context_init(struct event_context *ev) /* events */ if (ev == NULL) { - ev = event_context_init(ctx); + ev = event_context_find(ctx); if (ev == NULL) { talloc_free(ctx); return NULL; |