summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
c086513)
git-svn-id: svn+ssh://svn.dolda2000.com/srv/svn/repos/src/doldaconnect@715
959494ce-11ee-0310-bf91-
de5d638817bd
if(!dotth && !strncmp(p, "TTH:", 4))
{
dotth = 1;
if(!dotth && !strncmp(p, "TTH:", 4))
{
dotth = 1;
- if((buf = base32decode(p + 4, &buflen)) == NULL)
- goto out;
- if(buflen != 24)
+ if(((buf = base32decode(p + 4, &buflen)) == NULL) || (buflen != 24))
+ {
+ free(buf);
memcpy(hashtth, buf, 24);
free(buf);
} else {
memcpy(hashtth, buf, 24);
free(buf);
} else {