It's the same law; their logic is that promoting LGBT rights means promoting deviant sexual behaviour, and doing so publicly will inevitably reach children.
You can't really use Sochi as an example. The Olympics are a very important international event and Russia wanted the good publicity. You'll also notice that Putin ordered the release of many political prisoners just in time for that event.