mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Initialize ast_sockaddr before calling ast_sockaddr_resolve
Avoid possible jump based on unitialized value git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.8@340715 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -15345,7 +15345,7 @@ static void check_via(struct sip_pvt *p, struct sip_request *req)
|
|||||||
{
|
{
|
||||||
char via[512];
|
char via[512];
|
||||||
char *c, *maddr;
|
char *c, *maddr;
|
||||||
struct ast_sockaddr tmp;
|
struct ast_sockaddr tmp = { { 0, } };
|
||||||
uint16_t port;
|
uint16_t port;
|
||||||
|
|
||||||
ast_copy_string(via, get_header(req, "Via"), sizeof(via));
|
ast_copy_string(via, get_header(req, "Via"), sizeof(via));
|
||||||
|
|||||||
Reference in New Issue
Block a user