]> git.ipfire.org Git - thirdparty/curl.git/commit
ldap: fix OOM error on missing query string
authorNicolas <abramlujan@gmail.com>
Sat, 5 Oct 2019 01:49:43 +0000 (22:49 -0300)
committerJay Satiro <raysatiro@yahoo.com>
Sat, 5 Oct 2019 23:47:31 +0000 (19:47 -0400)
commit8bb3a95ce1577e2c8282e7d1c2830bde87cf5c3b
tree9f18217197dc7604bd6e21c09649431eaa4aa0a0
parentdf85b86a92ac2488667acfd81d16321c73fceecf
ldap: fix OOM error on missing query string

- Allow missing queries, don't return NO_MEMORY error in such a case.

It is acceptable for there to be no specified query string, for example:

curl ldap://ldap.forumsys.com

A regression bug in 1b443a7 caused this issue.

This is a partial fix for #4261.

Bug: https://github.com/curl/curl/issues/4261#issuecomment-525543077
Reported-by: Jojojov@users.noreply.github.com
Analyzed-by: Samuel Surtees
Closes https://github.com/curl/curl/pull/4467
lib/ldap.c