share: fixed a bug to prevent SSL from working correctly

More details here: https://github.com/Julienh/Sharrre/pull/193