When setting *_URL or *_PROXY in *_setopt(), it is important that we check
authorDaniel Stenberg <daniel@haxx.se>
Thu, 23 Aug 2001 14:06:38 +0000 (14:06 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 23 Aug 2001 14:06:38 +0000 (14:06 +0000)
commit12acab9b86196ca6ed7d084269c8484820686713
tree401a56b7c2cd26e45248507028f74a2cb3283f86
parentc9c2115088e0ae46bd88e42425c32e42ff0be87b
When setting *_URL or *_PROXY in *_setopt(), it is important that we check
and possibly free the existing pointer first, and then clear the "allocated"
bit. We previously mistakenly could free the new pointer passed to us by
the friendly user...!
lib/url.c