mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 16:39:43 -05:00
added missing error handling in validation of key signature and data signature (thx to HM for pointing this out)
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7060 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
928927e038
commit
a8feff606e
@ -351,6 +351,7 @@ ops_validate_key_cb(const ops_parser_content_t *content_,ops_parse_cb_info_t *cb
|
|||||||
default:
|
default:
|
||||||
fprintf(stderr,"unexpected tag=0x%x\n",content_->tag);
|
fprintf(stderr,"unexpected tag=0x%x\n",content_->tag);
|
||||||
//assert(0);
|
//assert(0);
|
||||||
|
OPS_ERROR_1(errors, OPS_E_V_NO_SIGNATURE, "Unknown PTAG 0x%02x in validation packet\n",content_->tag);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return OPS_RELEASE_MEMORY;
|
return OPS_RELEASE_MEMORY;
|
||||||
@ -483,6 +484,7 @@ validate_data_cb(const ops_parser_content_t *content_,ops_parse_cb_info_t *cbinf
|
|||||||
default:
|
default:
|
||||||
fprintf(stderr,"unexpected tag=0x%x\n",content_->tag);
|
fprintf(stderr,"unexpected tag=0x%x\n",content_->tag);
|
||||||
//assert(0);
|
//assert(0);
|
||||||
|
OPS_ERROR_1(errors, OPS_E_V_NO_SIGNATURE, "Unknown PTAG 0x%02x in validation packet\n",content_->tag);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return OPS_RELEASE_MEMORY;
|
return OPS_RELEASE_MEMORY;
|
||||||
|
Loading…
Reference in New Issue
Block a user