small fix
This commit is contained in:
parent
da669580a3
commit
2a1df8cd99
@ -494,9 +494,9 @@ tgl_peer_id_t parse_input_peer_id (const char *s, int l, int mask) {
|
|||||||
if (*s == '@') {
|
if (*s == '@') {
|
||||||
s ++;
|
s ++;
|
||||||
l --;
|
l --;
|
||||||
char *tmp = strndup (s, l);
|
char *tmp = tstrndup (s, l);
|
||||||
struct username_peer_pair *p = tree_lookup_username_peer_pair (username_peer_pair, (void *)&tmp);
|
struct username_peer_pair *p = tree_lookup_username_peer_pair (username_peer_pair, (void *)&tmp);
|
||||||
free (tmp);
|
tfree_str (tmp);
|
||||||
if (p && (!mask || tgl_get_peer_type (p->peer->id) == mask)) {
|
if (p && (!mask || tgl_get_peer_type (p->peer->id) == mask)) {
|
||||||
return p->peer->id;
|
return p->peer->id;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user