diff options
| author | Tim J. Robbins <tjr@FreeBSD.org> | 2003-09-28 09:45:56 +0000 |
|---|---|---|
| committer | Tim J. Robbins <tjr@FreeBSD.org> | 2003-09-28 09:45:56 +0000 |
| commit | 6613c32aa05b4720e948a6b9e001d0e54cd8cf85 (patch) | |
| tree | 0cfff4304e38d2fa9e70bcb9c8f43bc3e3f5450a /usr.bin/talk/ctl.c | |
| parent | 7045754fcfc88ca90b00986fdbaec2cc1cc5da8f (diff) | |
Notes
Diffstat (limited to 'usr.bin/talk/ctl.c')
| -rw-r--r-- | usr.bin/talk/ctl.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/usr.bin/talk/ctl.c b/usr.bin/talk/ctl.c index 3da8e79b98111..2597a4346c070 100644 --- a/usr.bin/talk/ctl.c +++ b/usr.bin/talk/ctl.c @@ -70,6 +70,9 @@ open_sockt() { int length; + (void)memset(&my_addr, 0, sizeof(my_addr)); + my_addr.sin_family = AF_INET; + my_addr.sin_len = sizeof(my_addr); my_addr.sin_addr = my_machine_addr; my_addr.sin_port = 0; sockt = socket(AF_INET, SOCK_STREAM, 0); @@ -88,6 +91,9 @@ open_ctl() { int length; + (void)memset(&ctl_addr, 0, sizeof(ctl_addr)); + ctl_addr.sin_family = AF_INET; + ctl_addr.sin_len = sizeof(my_addr); ctl_addr.sin_port = 0; ctl_addr.sin_addr = my_machine_addr; ctl_sockt = socket(AF_INET, SOCK_DGRAM, 0); |
