projects
/
radsecproxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfa5790
)
fixed couple of bugs
author
venaas
<venaas>
Wed, 17 Sep 2008 09:20:48 +0000
(09:20 +0000)
committer
venaas
<venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>
Wed, 17 Sep 2008 09:20:48 +0000
(09:20 +0000)
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@386
e88ac4ed
-0b26-0410-9574-
a7f39faa03bf
radsecproxy.c
patch
|
blob
|
history
util.c
patch
|
blob
|
history
diff --git
a/radsecproxy.c
b/radsecproxy.c
index
9518725
..
2201af9
100644
(file)
--- a/
radsecproxy.c
+++ b/
radsecproxy.c
@@
-1649,6
+1649,7
@@
void respond(struct request *rq, uint8_t code, char *message) {
radmsg_free(rq->msg);
rq->msg = msg;
debug(DBG_DBG, "respond: sending %s to %s", radmsgtype2string(msg->code), rq->from->conf->host);
+ rq->refcount++;
sendreply(rq);
}
@@
-1877,7
+1878,7
@@
int radsrv(struct request *rq) {
rmclrqexit:
rmclientrq(rq, msg->id);
exit:
- free(rq);
+ free
rq
(rq);
free(userascii);
return 1;
}
diff --git
a/util.c
b/util.c
index
02614eb
..
9a54b57
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-127,6
+127,7
@@
struct sockaddr *addr_copy(struct sockaddr *in) {
}
break;
}
+ out->sa_family = in->sa_family;
return out;
}