projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Keep Windows happy.
[tinc]
/
src
/
protocol.c
diff --git
a/src/protocol.c
b/src/protocol.c
index
c2d9289
..
6088740
100644
(file)
--- 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.
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.14
4 2003/07/29 10:50:1
5 guus Exp $
+ $Id: protocol.c,v 1.28.4.14
5 2003/07/30 11:50:4
5 guus Exp $
*/
#include "system.h"
*/
#include "system.h"
@@
-209,13
+209,12
@@
void exit_requests(void)
bool seen_request(char *request)
{
bool seen_request(char *request)
{
- past_request_t p = {
- .request = request,
- };
- past_request_t *new;
+ past_request_t *new, p = {0};
cp();
cp();
+ p.request = request;
+
if(avl_search(past_request_tree, &p)) {
ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
return true;
if(avl_search(past_request_tree, &p)) {
ifdebug(SCARY_THINGS) logger(LOG_DEBUG, _("Already seen request"));
return true;