check_aliased_update(): check that dst_name is non-NULL
authorMichael Haggerty <redacted>
Thu, 7 Apr 2016 19:03:08 +0000 (15:03 -0400)
committerJunio C Hamano <redacted>
Sun, 10 Apr 2016 18:35:37 +0000 (11:35 -0700)
commitded83936106a94f854873e949fa7928dce8dbdd1
treeb90763b2bb9cdc211bf4799cd2809c2b654c45a3
parentbe7651a34727d847e150cea564357c37d8a334c9
check_aliased_update(): check that dst_name is non-NULL

If there is an error in resolve_ref_unsafe(), it returns NULL. We check
for this case, but not until after calling strip_namespace(). Instead,
call strip_namespace() *after* the NULL check.

Signed-off-by: Michael Haggerty <redacted>
Signed-off-by: David Turner <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/receive-pack.c
git clone https://git.99rst.org/PROJECT