<HTML >
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=iso-8859-1">



<TITLE>Nachricht</TITLE>

<META content="MSHTML 6.00.2800.1595" name=GENERATOR></HEAD>
<BODY >
        <DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=193005014-17082007>Me 
again :)</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007>..though I'm not an expert, I decided to simply guess 
the code :))</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007>Adding</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=193005014-17082007>&nbsp; 
_val = &amp;(ROW_VALUES(_row)[col]);</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN class=193005014-17082007>before 
the switch statement fixes the bug for me. The line number 580 I gave was wrong 
because of some debug code I added. The line where _val = ... is added is 575. 
Please confirm if this is the correct fix or just works by accident :) 
Thanks.</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007>Regards, Daniel</SPAN></FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2><SPAN 
class=193005014-17082007></SPAN></FONT>&nbsp;</DIV>
</DIV><BR>
        <DIV>
                <FONT SIZE="1" FACE="Arial">
T-Mobile Deutschland GmbH<BR>Aufsichtsrat: Hamid Akhavan (Vorsitzender)<BR>Gesch&#228;ftsf&#252;hrung: Philipp Humm (Sprecher), Thomas Berlemann, Stefan Homeister, Holger Kranzusch, G&#252;nther Ottendorfer, Dr. Raphael K&#252;bler, Dr. Steffen Roehn<BR>Handelsregister: Amtsgericht Bonn, HRB 59 19<BR>Sitz der Gesellschaft: Bonn<BR>WEEE-Reg.-Nr.: DE60800328<BR>
<BR>
                </FONT>
        </DIV>
        <P><BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px">
  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=de dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Urspr&#252;ngliche Nachricht-----<BR><B>Von:</B> 
  users-bounces@openser.org [mailto:users-bounces@openser.org] <B>Im Auftrag von 
  </B>Frey, Daniel (external)<BR><B>Gesendet:</B> Freitag, 17. August 2007 
  16:46<BR><B>An:</B> daniel@voice-system.ro<BR><B>Cc:</B> 
  users@openser.org<BR><B>Betreff:</B> AW: [OpenSER-Users] OpenSER 1.2.2 - 
  Problem with database (postgres?)<BR><BR></FONT></DIV>
  <DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff size=2>Hi 
  Daniel,</FONT></SPAN></DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff size=2>a 
  further analysis shows that db/db.c table_version() is causing 
  dbf-&gt;free_result() to be called - but it never returns. In fact, the 
  version of the database table is retrieved correctly (line 211 reads the 
  correct value), but line 212 never returns. Checking 
  modules/postgres/db_res.c,&nbsp;I found that pg_free_result() calls 
  pg_free_columns() in line 653 (which returns), and then it calls 
  pg_free_rows()&nbsp;which does not return.</FONT></SPAN></DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2>Also, I noticed that there's a warning during the compilation about 
  db_res.c:580: warning: &#8216;_val&#8217; is used uninitialized in this 
  function</FONT></SPAN></DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2>Looks like a candidate - but I'm not familiar with the internals 
  here...</FONT></SPAN></DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2>Regards, Daniel</FONT></SPAN></DIV>
  <DIV><SPAN class=896133514-17082007><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV></DIV><BR>
  <DIV><FONT face=Arial size=1>T-Mobile Deutschland GmbH<BR>Aufsichtsrat: Hamid 
  Akhavan (Vorsitzender)<BR>Gesch&#228;ftsf&#252;hrung: Philipp Humm (Sprecher), Thomas 
  Berlemann, Stefan Homeister, Holger Kranzusch, G&#252;nther Ottendorfer, Dr. 
  Raphael K&#252;bler, Dr. Steffen Roehn<BR>Handelsregister: Amtsgericht Bonn, HRB 59 
  19<BR>Sitz der Gesellschaft: Bonn<BR>WEEE-Reg.-Nr.: 
  DE60800328<BR><BR></FONT></DIV>
  <P></P></BLOCKQUOTE></P>
</BODY>
</HTML>