C: patch empty strings with cur=7 to cur=0

occuring with issue #317

use Net::SSLeay (); use IO::Socket::SSL ();
Net::SSLeay::OpenSSL_add_ssl_algorithms();
my $ssl_ctx = IO::Socket::SSL::SSL_Context->new(SSL_server => 1);

It caused valgrind and asan errors.