<p>herlesupreeth has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/18975">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">utils.py: Handle parsing of ePDGId TLV with zero length<br><br>Change-Id: Ie05ae010948884765363bd9dbc2b0d764ff8d42a<br>---<br>M pySim/utils.py<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/75/18975/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/utils.py b/pySim/utils.py</span><br><span>index 2ca6165..79a1c1b 100644</span><br><span>--- a/pySim/utils.py</span><br><span>+++ b/pySim/utils.py</span><br><span>@@ -462,6 +462,10 @@</span><br><span>               if tlv[0] != 0x80:</span><br><span>                   continue</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+          # Empty field - Zero length</span><br><span style="color: hsl(120, 100%, 40%);">+           if tlv[1] == 0:</span><br><span style="color: hsl(120, 100%, 40%);">+                       continue</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>           # First byte in the value has the address type</span><br><span>               addr_type = tlv[2][0]</span><br><span>                # TODO: Support parsing of IPv4 and IPv6</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/18975">change 18975</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/18975"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ie05ae010948884765363bd9dbc2b0d764ff8d42a </div>
<div style="display:none"> Gerrit-Change-Number: 18975 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: herlesupreeth <herlesupreeth@gmail.com> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>