projects
/
freeradius.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5b325de
)
Initialize salen before calling getsockname
author
raghu
<raghu>
Tue, 19 Apr 2005 22:07:41 +0000
(22:07 +0000)
committer
raghu
<raghu>
Tue, 19 Apr 2005 22:07:41 +0000
(22:07 +0000)
src/lib/radius.c
patch
|
blob
|
history
diff --git
a/src/lib/radius.c
b/src/lib/radius.c
index
5cbe931
..
8652522
100644
(file)
--- a/
src/lib/radius.c
+++ b/
src/lib/radius.c
@@
-266,6
+266,7
@@
static ssize_t rad_recvfrom(int sockfd, void *buf, size_t len, int flags,
* First, do a hokey hack to figure out which address
* family, address, and port the socket is listening on.
*/
+ salen = sizeof(salocal);
if (getsockname(sockfd, (struct sockaddr *) &salocal,
&salen) < 0) return -1;