1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-03 12:11:33 +01:00

agent: Another minor fix to map_supervised_sockets.

* agent/gpg-agent.c (map_supervised_sockets): Remove debug message.
Provide correct fd in the second error case.

Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-10-05 11:48:59 +02:00
parent f57dc2b1e6
commit 1cedc32c95
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -739,13 +739,11 @@ map_supervised_sockets (gnupg_fd_t *r_fd,
{ {
for (j = 0; j < DIM (tbl); j++) for (j = 0; j < DIM (tbl); j++)
{ {
log_debug ("i=%d j=%d fdname=%s check=%s\n", i, j,
fdnames[i], tbl[j].label);
if (!strcmp (fdnames[i], tbl[j].label) || j == DIM(tbl)-1) if (!strcmp (fdnames[i], tbl[j].label) || j == DIM(tbl)-1)
{ {
fd = 3 + i;
if (**tbl[j].fdaddr == -1) if (**tbl[j].fdaddr == -1)
{ {
fd = 3 + i;
name = get_socket_name (fd); name = get_socket_name (fd);
if (name) if (name)
{ {