X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol.c;h=6088740a906aab06893ce84fa4244ff5917b436c;hp=c2d928987adadb9242b5ec9de8b6190c0635f6e4;hb=fcbe29bc4cc67530581a36cf1a3a1445c741b8e5;hpb=de223b51b94c58d1674f1ef56e9d485ff48d366d diff --git a/src/protocol.c b/src/protocol.c index c2d92898..6088740a 100644 --- a/src/protocol.c +++ b/src/protocol.c @@ -17,7 +17,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - $Id: protocol.c,v 1.28.4.144 2003/07/29 10:50:15 guus Exp $ + $Id: protocol.c,v 1.28.4.145 2003/07/30 11:50:45 guus Exp $ */ #include "system.h" @@ -209,13 +209,12 @@ void exit_requests(void) bool seen_request(char *request) { - past_request_t p = { - .request = request, - }; - past_request_t *new; + past_request_t *new, p = {0}; cp(); + p.request = request; + if(avl_search(past_request_tree, &p)) { ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request")); return true;