~mdw
/
fwd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug in identification timout handling.
[fwd]
/
file.c
diff --git
a/file.c
b/file.c
index
60a233d
..
371273e
100644
(file)
--- a/
file.c
+++ b/
file.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: file.c,v 1.
4 2001/02/03 20:30:03
mdw Exp $
+ * $Id: file.c,v 1.
6 2003/11/29 20:36:07
mdw Exp $
*
* File source and target
*
*
* File source and target
*
@@
-29,6
+29,12
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: file.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: file.c,v $
+ * Revision 1.6 2003/11/29 20:36:07 mdw
+ * Privileged outgoing connections.
+ *
+ * Revision 1.5 2002/02/22 23:43:32 mdw
+ * Call @xfree@ rather than @free@.
+ *
* Revision 1.4 2001/02/03 20:30:03 mdw
* Support re-reading config files on SIGHUP.
*
* Revision 1.4 2001/02/03 20:30:03 mdw
* Support re-reading config files on SIGHUP.
*
@@
-477,9
+483,9
@@
static endpt *file_endpt(fdata *f, const char *desc)
static void file_destroy(fdata *f)
{
if (f->in.type == FTYPE_NAME)
static void file_destroy(fdata *f)
{
if (f->in.type == FTYPE_NAME)
- free(f->in.u.name);
+
x
free(f->in.u.name);
if (f->out.type == FTYPE_NAME)
if (f->out.type == FTYPE_NAME)
- free(f->out.u.name);
+
x
free(f->out.u.name);
}
/*----- File source description -------------------------------------------*/
}
/*----- File source description -------------------------------------------*/
@@
-549,7
+555,7
@@
tidy:
static void fsource_destroy(source *s)
{
fsource *fs = (fsource *)s;
static void fsource_destroy(source *s)
{
fsource *fs = (fsource *)s;
- free(fs->s.desc);
+
x
free(fs->s.desc);
file_destroy(&fs->f);
DESTROY(fs);
}
file_destroy(&fs->f);
DESTROY(fs);
}
@@
-604,7
+610,7
@@
static void ftarget_destroy(target *t)
{
ftarget *ft = (ftarget *)t;
file_destroy(&ft->f);
{
ftarget *ft = (ftarget *)t;
file_destroy(&ft->f);
- free(ft->t.desc);
+
x
free(ft->t.desc);
DESTROY(ft);
}
DESTROY(ft);
}
@@
-612,7
+618,7
@@
static void ftarget_destroy(target *t)
target_ops ftarget_ops = {
"file",
target_ops ftarget_ops = {
"file",
- ftarget_option, ftarget_read, ftarget_create, ftarget_destroy
+ ftarget_option, ftarget_read,
0,
ftarget_create, ftarget_destroy
};
/*----- That's all, folks -------------------------------------------------*/
};
/*----- That's all, folks -------------------------------------------------*/