[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-840
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-840-ge53e3aa |
Date: |
Mon, 14 Mar 2016 04:15:25 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-4.1-stable has been updated
via e53e3aac9604a9ce7563f045249b41ebfb0c2e4e (commit)
from e3cc36f1f2f7172ea561664e34bec54c3436297a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=e53e3aac9604a9ce7563f045249b41ebfb0c2e4e
commit e53e3aac9604a9ce7563f045249b41ebfb0c2e4e
Author: Arnold D. Robbins <address@hidden>
Date: Mon Mar 14 06:15:04 2016 +0200
Make UDP networking more-or-less work again.
diff --git a/ChangeLog b/ChangeLog
index 0f70076..7160c86 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2016-03-14 Arnold D. Robbins <address@hidden>
+
+ * io.c (socketopen): For SOCK_DGRAM, set read_len to sizeof
+ remote_addr. Makes UDP more or less work again.
+ Thanks to Juergen Kahrs for the fix.
+
2016-03-10 Arnold D. Robbins <address@hidden>
* builtin.c (do_system): Further improvements. Catch core dump
diff --git a/io.c b/io.c
index d700d87..d443568 100644
--- a/io.c
+++ b/io.c
@@ -1525,7 +1525,7 @@ socketopen(int family, int type, const char *localpname,
#ifdef MSG_PEEK
char buf[10];
struct sockaddr_storage remote_addr;
- socklen_t read_len = 0;
+ socklen_t read_len =
sizeof(remote_addr);
if (recvfrom(socket_fd, buf, 1,
MSG_PEEK,
(struct sockaddr *) &
remote_addr,
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 6 ++++++
io.c | 2 +-
2 files changed, 7 insertions(+), 1 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-840-ge53e3aa,
Arnold Robbins <=