move memset until after checking for dlsym error

Bail out before memcpy, not the other way around.

Signed-off-by: Michael Leibowitz <michael.leibowitz@intel.com>