<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>While browsing the source of sheepdog,  seems those two lines are the same:<br><br>memcpy(bytes + 12, &sin->sin_addr, 4);<br>memcpy(bytes + 12, &sin->sin_addr, 4); <br><br>Attached patch is to remove the duplicated line if this is a minor bug.<br><br>From 4f5fc977ea12e2048fc025b66fbbeea9c411157d Mon Sep 17 00:00:00 2001<br>From: Roy Yang <ryang@ryang-dt.(none)><br>Date: Thu, 12 Mar 2015 21:39:00 -0700<br>Subject: [PATCH] Remove the duplicated code line<br><br>Signed-off-by: Roy Yang <bsdnet@outlook.com><br>---<br> lib/net.c |    1 -<br> 1 files changed, 0 insertions(+), 1 deletions(-)<br><br>diff --git a/lib/net.c b/lib/net.c<br>index 5b34a1c..6e84937 100644<br>--- a/lib/net.c<br>+++ b/lib/net.c<br>@@ -519,7 +519,6 @@ int get_local_addr(uint8_t *bytes)<br>                        sin = (struct sockaddr_in *)ifa->ifa_addr;<br>                        memset(bytes, 0, 12);<br>                        memcpy(bytes + 12, &sin->sin_addr, 4);<br>-                       memcpy(bytes + 12, &sin->sin_addr, 4);<br>                        sd_notice("found IPv4 address");<br>                        goto out;<br>                case AF_INET6:<br>-- <br>1.7.2.3<br><br><br>Cheers, <br><br>Roy<br>                                       </div></body>
</html>