mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
fixed potential SIGSEGV because of not checking returned pointer
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4064 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
fbcfa78ad9
commit
7c5f54d536
@ -495,6 +495,10 @@ int beMsgMatchString(be_node *n, const char *str, int len)
|
||||
uint32_t beMsgGetY(be_node *n)
|
||||
{
|
||||
be_node *val = beMsgGetDictNode(n, "y");
|
||||
|
||||
if(val == NULL)
|
||||
return BE_Y_UNKNOWN ;
|
||||
|
||||
if (val->type != BE_STR)
|
||||
{
|
||||
return BE_Y_UNKNOWN;
|
||||
|
Loading…
Reference in New Issue
Block a user