Update client.c

Synced with mdhim-tng