]> git.ipfire.org Git - thirdparty/wireguard-tools.git/commit
ipc: do not use fscanf with trailing \n
authorJason A. Donenfeld <Jason@zx2c4.com>
Mon, 25 Jan 2021 20:22:36 +0000 (21:22 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 25 Jan 2021 20:22:36 +0000 (21:22 +0100)
commit457f96b65e4f7241aceaa7cb9c7bbce7be1a2212
treefd31c75511840023621f7324676a911d4f652a62
parent66ed611bd0f477fbe5792212d0a88076bec9bf3b
ipc: do not use fscanf with trailing \n

If the stream is not closed, then this winds up hanging forever. So
remove the trailing \n\n and check manually after.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
src/ipc-uapi.h