<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=gb2312"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:ΛΞΜε;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:"\@ΛΞΜε";
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:ΞΆΘνΡΕΊΪ;
        panose-1:2 11 5 3 2 2 4 2 2 4;}
@font-face
        {font-family:"\@ΞΆΘνΡΕΊΪ";
        panose-1:2 11 5 3 2 2 4 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Τ¤ΙθΈρΚ½ Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:ΛΞΜε;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.HTMLChar
        {mso-style-name:"HTML Τ¤ΙθΈρΚ½ Char";
        mso-style-priority:99;
        mso-style-link:"HTML Τ¤ΙθΈρΚ½";
        font-family:ΛΞΜε;}
span.n
        {mso-style-name:n;}
span.o
        {mso-style-name:o;}
span.p
        {mso-style-name:p;}
span.nb
        {mso-style-name:nb;}
span.mi
        {mso-style-name:mi;}
span.k
        {mso-style-name:k;}
span.nf
        {mso-style-name:nf;}
span.kt
        {mso-style-name:kt;}
span.nl
        {mso-style-name:nl;}
span.cm
        {mso-style-name:cm;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
/* Page Definitions */
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=ZH-CN link="#0563C1" vlink="#954F72" style='text-justify-trim:punctuation'><div class=WordSection1><p class=MsoNormal><b><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>Reason:<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>src/lib/radius.c<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>static VALUE_PAIR *rad_vp2tlv(VALUE_PAIR *vps)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>{<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>΅­΅­<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                               end = <b>vp2data(NULL, NULL, NULL</b>, vp, ptr + 2,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                           tlv->vp_tlv + tlv->length - ptr);</span><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>΅­΅­<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>}<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>static uint8_t *vp2data(const RADIUS_PACKET *packet,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                                              const RADIUS_PACKET *original,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                                              const char *secret, const VALUE_PAIR *vp, uint8_t *ptr,<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                                              size_t room)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>{<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>΅­΅­<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>               <b>if (packet)</b> switch (vp->flags.encrypt) {  <b> // packet is NULL, data isn't copyed.</b><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                     case FLAG_ENCRYPT_USER_PASSWORD:<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>΅­΅­<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                      default:<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                               /*<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                                *            Just copy the data over<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                                */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                               memcpy(ptr, data, len);<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>                               break;<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>               } /* switch over encryption flags */<o:p></o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'><o:p> </o:p></span></p><p class=MsoNormal align=left style='text-align:left'><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>               return ptr + len;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-family:"ΞΆΘνΡΕΊΪ","sans-serif"'>}<o:p></o:p></span></p><p class=MsoNormal><b><span lang=EN-US style='font-size:12.0pt;font-family:ΛΞΜε'>patched:<o:p></o:p></span></b></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:ΛΞΜε'>diff old/src/lib/radius.c new/src/lib/radius.c <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:ΛΞΜε'>799a800,801<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:ΛΞΜε'>>       else<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:12.0pt;font-family:ΛΞΜε'>>               memcpy(ptr, data, len);<o:p></o:p></span></p></div></body></html>