[asterisk-bugs] [LibSS7 0014677]: ss7_add_link, handling of parameter `name'

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Aug 21 16:49:46 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=14677 
====================================================================== 
Reported By:                Safari
Assigned To:                mattf
====================================================================== 
Project:                    LibSS7
Issue ID:                   14677
Category:                   General
Reproducibility:            N/A
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             2009-03-16 11:51 CDT
Last Modified:              2009-08-21 16:49 CDT
====================================================================== 
Summary:                    ss7_add_link, handling of parameter `name'
Description: 
in ss7.c:ss7_add_link(),

  if (!name && (name[0] == 0))
    return -1;

is obviously wrong.
it checks for '\0' first char in name only if you pass the function a
zero, in which case it segfaults for me.

Did you mean || instead of && ?

ss7linktest.c:main() calls ss7_add_link with parameter 3 as `fd', do you
have comments about that?

====================================================================== 

---------------------------------------------------------------------- 
 (0109489) svnbot (reporter) - 2009-08-21 16:49
 https://issues.asterisk.org/view.php?id=14677#c109489 
---------------------------------------------------------------------- 
Repository: libss7
Revision: 272

U   trunk/ss7.c

------------------------------------------------------------------------
r272 | qwell | 2009-08-21 16:49:46 -0500 (Fri, 21 Aug 2009) | 5 lines

Correct logic in a name comparison.

(closes issue https://issues.asterisk.org/view.php?id=14677)
Reported by: Safari

------------------------------------------------------------------------

http://svn.digium.com/view/libss7?view=rev&revision=272 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-21 16:49 svnbot         Checkin                                      
2009-08-21 16:49 svnbot         Note Added: 0109489                          
======================================================================




More information about the asterisk-bugs mailing list