Commit 1ac20062 authored by Evan Hunt's avatar Evan Hunt
Browse files

clean up dead code

removed an if statement that always evaluated to false

(cherry picked from commit fc5ae319)
parent 3d9a46bc
...@@ -501,9 +501,6 @@ isc_sockaddr_fromsockaddr(isc_sockaddr_t *isa, const struct sockaddr *sa) { ...@@ -501,9 +501,6 @@ isc_sockaddr_fromsockaddr(isc_sockaddr_t *isa, const struct sockaddr *sa) {
default: default:
return (ISC_R_NOTIMPLEMENTED); return (ISC_R_NOTIMPLEMENTED);
} }
if (length == 0) {
return (ISC_R_NOTIMPLEMENTED);
}
memset(isa, 0, sizeof(isc_sockaddr_t)); memset(isa, 0, sizeof(isc_sockaddr_t));
memcpy(isa, sa, length); memcpy(isa, sa, length);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment