Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
sofia-sip
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
External Wiki
External Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
BC
public
external
sofia-sip
Commits
f90ef1cb
Commit
f90ef1cb
authored
Mar 09, 2011
by
Pekka Pessi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tport.c: fix calloc error checking in tport_get_local_addrinfo()
MeeGo Coverity issue CID#7508
parent
f826cbd7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
7 deletions
+7
-7
tport.c
libsofia-sip-ua/tport/tport.c
+7
-7
No files found.
libsofia-sip-ua/tport/tport.c
View file @
f90ef1cb
...
@@ -1907,7 +1907,7 @@ tport_get_local_addrinfo(tport_master_t *mr,
...
@@ -1907,7 +1907,7 @@ tport_get_local_addrinfo(tport_master_t *mr,
ai
=
calloc
(
1
,
sizeof
*
ai
+
li
->
li_addrlen
);
ai
=
calloc
(
1
,
sizeof
*
ai
+
li
->
li_addrlen
);
if
(
ai
==
NULL
)
if
(
ai
==
NULL
)
break
;
goto
error
;
*
prev
=
ai
,
prev
=
&
ai
->
ai_next
;
*
prev
=
ai
,
prev
=
&
ai
->
ai_next
;
...
@@ -1925,18 +1925,18 @@ tport_get_local_addrinfo(tport_master_t *mr,
...
@@ -1925,18 +1925,18 @@ tport_get_local_addrinfo(tport_master_t *mr,
su_freelocalinfo
(
li_result
);
su_freelocalinfo
(
li_result
);
if
(
li
)
{
tport_freeaddrinfo
(
*
return_ai
);
su_seterrno
(
ENOMEM
);
return
-
1
;
}
if
(
*
return_ai
==
NULL
)
{
if
(
*
return_ai
==
NULL
)
{
su_seterrno
(
ENOENT
);
su_seterrno
(
ENOENT
);
return
-
1
;
return
-
1
;
}
}
return
0
;
return
0
;
error:
su_freelocalinfo
(
li_result
);
tport_freeaddrinfo
(
*
return_ai
);
su_seterrno
(
ENOMEM
);
return
-
1
;
}
}
su_inline
su_addrinfo_t
*
get_next_addrinfo
(
su_addrinfo_t
**
all
);
su_inline
su_addrinfo_t
*
get_next_addrinfo
(
su_addrinfo_t
**
all
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment