<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }p { margin-top: 0px; margin-bottom: 0px; }div.foxdiv20160407100310525721 { }body { font-size: 16pt; font-family: ????; color: rgb(0, 0, 0); line-height: 1.5; }</style>
</head>
<body>
<div><span></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;">
<div>
<div class="FoxDiv20160407100310525721">
<p><span style="font-size: 13px; background-color: rgba(0, 0, 0, 0);">--- multipath-tools-ecf84a8/multipathd/cli_handlers.c 2016-04-07 09:28:46.693622941 +0800<br>
+++ patch/cli_handlers.c 2016-04-07 09:43:36.237622835 +0800<br>
@@ -523,7 +523,8 @@<br>
char * param = get_keyparam(v, MAP);<br>
int major, minor;<br>
char dev_path[PATH_SIZE];<br>
- char *alias, *refwwid;<br>
+ char *alias = NULL;<br>
+ char *refwwid = NULL;<br>
int rc, count = 0;<br>
<br>
param = convert_dev(param, 0);<br>
@@ -565,8 +566,10 @@<br>
return 1;<br>
}<br>
rc = ev_add_map(dev_path, alias, vecs);<br>
- FREE(alias);<br>
- FREE(refwwid);<br>
+ if (alias)<br>
+ FREE(alias);<br>
+ if (refwwid)<br>
+ FREE(refwwid);<br>
return rc;<br>
}<br>
<br>
@@ -577,7 +580,7 @@<br>
char * param = get_keyparam(v, MAP);<br>
int major, minor;<br>
char dev_path[PATH_SIZE];<br>
- char *alias;<br>
+ char *alias = NULL;<br>
int rc;<br>
<br>
param = convert_dev(param, 0);<br>
@@ -600,7 +603,8 @@<br>
return 0;<br>
}<br>
rc = ev_remove_map(param, alias, minor, vecs);<br>
- FREE(alias);<br>
+ if (alias)<br>
+ FREE(alias);<br>
return rc;<br>
}<br>
<br>
</span></p>
</div>
</div>
</blockquote>
<span style="font-size:7.5pt;font-family:华文细黑;color:gray"><span lang="EN-US">-------------------------------------------------------------------------------------------------------------------------------------<br>
</span>本邮件及其附件含有杭州华三通信技术有限公司的保密信息,仅限于发送给上面地址中列出<span lang="EN-US"><br>
</span>的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、<span lang="EN-US"><br>
</span>或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本<span lang="EN-US"><br>
</span>邮件!<span lang="EN-US"><br>
</span></span><span lang="EN-US" style="font-size:7.5pt;font-family:"Arial","sans-serif";color:gray">This e-mail and its attachments contain confidential information from H3C, which is
<br>
intended only for the person or entity whose address is listed above. Any use of the
<br>
information contained herein in any way (including, but not limited to, total or partial
<br>
disclosure, reproduction, or dissemination) by persons other than the intended <br>
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
<br>
by phone or email immediately and delete it!</span>
</body>
</html>