Skip to content

Commit f739337

Browse files
committedAug 7, 2014
pettycoin-gateway: fix setup (privkey is needs P- prefix)
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
1 parent 5abfe3d commit f739337

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pettycoin-gateway.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ static void setup_gateway(const tal_t *ctx)
291291
if (fd < 0)
292292
err(1, "Creating gateway-privkey");
293293
/* Skip \n at the end. */
294-
if (!write_all(fd, value, strlen(value) - 1))
294+
if (!write_all(fd, "P-", 2) || !write_all(fd, value, strlen(value) - 1))
295295
err(1, "Writing gateway-privkey");
296296
fsync(fd);
297297
close(fd);

0 commit comments

Comments
 (0)
Please sign in to comment.