aboutsummaryrefslogtreecommitdiffstats
path: root/g10/photoid.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/photoid.c')
-rw-r--r--g10/photoid.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/g10/photoid.c b/g10/photoid.c
index 828514e8d..ab9025c73 100644
--- a/g10/photoid.c
+++ b/g10/photoid.c
@@ -236,10 +236,7 @@ void show_photo(const struct user_attribute *attr,PKT_public_key *pk)
command[PHOTO_COMMAND_MAXLEN-1]='\0';
if(exec_write(&spawn,NULL,command,1,1)!=0)
- {
- exec_finish(spawn);
- goto fail;
- }
+ goto fail;
fwrite(attr->data,attr->len,1,spawn->tochild);