1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

when doing a "secure nbns" wack response and check with owner for a

multihomed registration we were sending the packet to the wrong host!
We sent it to the person trying to register rather than to the person
who currently holds the name. That means we were not secure and we
could allow two people to register the same name.

Jeremy, you may wish to merge this change into 2.0.X
(This used to be commit 94ca1d1250)
This commit is contained in:
Andrew Tridgell 2000-03-26 23:16:07 +00:00
parent b18791b860
commit 4e7af2b3b5

View File

@ -1176,9 +1176,12 @@ is one of our (WINS server) names. Denying registration.\n", nmb_namestr(questio
* the recursion desired flag is not set (you were right Luke :-).
* This function should *only* be called from the WINS server
* code. JRA.
*
* Note that this packet is sent to the current owner of the name,
* not the person who sent the packet
*/
query_name_from_wins_server( p->ip,
query_name_from_wins_server( namerec->data.ip[0],
question->name,
question->name_type,
wins_multihomed_register_query_success,