summaryrefslogtreecommitdiff
path: root/mysys/my_gethwaddr.c
diff options
context:
space:
mode:
authorVladislav Vaintroub <wlad@montyprogram.com>2011-10-19 20:51:01 +0200
committerVladislav Vaintroub <wlad@montyprogram.com>2011-10-19 20:51:01 +0200
commit78eb1d48c91f260cab3f616d8a9a8de8040d2347 (patch)
tree7bd54d8278e558e82aefc69822747f832ce18089 /mysys/my_gethwaddr.c
parentd58848885584dc791f92cb89c4aac5365891c340 (diff)
downloadmariadb-git-78eb1d48c91f260cab3f616d8a9a8de8040d2347.tar.gz
Fix endless loop in my_gethwaddr()
Diffstat (limited to 'mysys/my_gethwaddr.c')
-rw-r--r--mysys/my_gethwaddr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mysys/my_gethwaddr.c b/mysys/my_gethwaddr.c
index bcc231eaf7e..d02ba822f73 100644
--- a/mysys/my_gethwaddr.c
+++ b/mysys/my_gethwaddr.c
@@ -152,7 +152,10 @@ my_bool my_gethwaddr(uchar *to)
{
if (info->Type == MIB_IF_TYPE_ETHERNET &&
info->AddressLength == ETHER_ADDR_LEN)
+ {
res= memcpy_and_test(to, info->Address, ETHER_ADDR_LEN);
+ }
+ info = info->Next;
}
err: