projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d3b6c8
)
Use counters even if there's no parent
author
Alan T. DeKok
<aland@freeradius.org>
Sun, 11 May 2014 15:42:03 +0000
(11:42 -0400)
committer
Alan T. DeKok
<aland@freeradius.org>
Sun, 11 May 2014 15:42:03 +0000
(11:42 -0400)
src/main/listen.c
patch
|
blob
|
history
diff --git
a/src/main/listen.c
b/src/main/listen.c
index
e1fb309
..
c6efeb2
100644
(file)
--- a/
src/main/listen.c
+++ b/
src/main/listen.c
@@
-708,12
+708,10
@@
static void common_socket_free(rad_listen_t *this)
if (sock->proto != IPPROTO_TCP) return;
- if (!sock->parent) return;
-
/*
* Decrement the number of connections.
*/
- if (sock->parent
->limit.num_connections > 0
) {
+ if (sock->parent
&& (sock->parent->limit.num_connections > 0)
) {
sock->parent->limit.num_connections--;
}
if (sock->client && sock->client->limit.num_connections > 0) {