summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Osterried <thomas@osterried.de>2008-10-10 16:24:00 +0000
committerThomas Osterried <thomas@osterried.de>2008-10-10 16:24:00 +0000
commit18790e36406a7e9411b459c92032c41cf5faa295 (patch)
treeb49f12135aee05195a8ac21da9302705516fdc4e
parent5b09226ce08f0ae073721a053e91e387be47752f (diff)
get_assoc(): file handle of fopen(PROC_AX25_CALLS_FILE, "r") was
never closed.
-rw-r--r--ax25/axspawn.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ax25/axspawn.c b/ax25/axspawn.c
index 2b3615d..af5230d 100644
--- a/ax25/axspawn.c
+++ b/ax25/axspawn.c
@@ -1,6 +1,6 @@
/*
*
- * $Id: axspawn.c,v 1.16 2008/04/13 23:39:52 dl9sau Exp $
+ * $Id: axspawn.c,v 1.17 2008/10/10 16:24:00 dl9sau Exp $
*
* axspawn.c - run a program from ax25d.
*
@@ -982,9 +982,11 @@ int get_assoc(struct sockaddr_ax25 *sax25)
if (sax25->sax25_uid == uid)
{
ax25_aton_entry(buf, (char *) &sax25->sax25_call);
+ fclose(fp);
return 0;
}
}
+ fclose(fp);
return -1;
}