Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(423)

Unified Diff: src/pkg/syscall/route_dragonfly.go

Issue 69910043: code review 69910043: syscall: make address of unnamed Unix sockets empty on ...
Patch Set: diff -r f62cd90ce0d8 https://go.googlecode.com/hg/ Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/pkg/syscall/route_dragonfly.go
===================================================================
--- a/src/pkg/syscall/route_dragonfly.go
+++ b/src/pkg/syscall/route_dragonfly.go
@@ -58,7 +58,7 @@
rsa := (*RawSockaddr)(unsafe.Pointer(&b[0]))
switch i {
case RTAX_IFA:
- sa, e := anyToSockaddr((*RawSockaddrAny)(unsafe.Pointer(rsa)))
+ sa, e := anyToSockaddr((*RawSockaddrAny)(unsafe.Pointer(rsa)), len(b))
if e != nil {
return nil
}

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b