VirtualBox

Ignore:
Timestamp:
Nov 2, 2007 1:11:36 PM (17 years ago)
Author:
vboxsync
Message:

Correctly process a NULL netAddress value.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleVRDPServer.cpp

    r5611 r5616  
    663663                if (cbAddress > 0)
    664664                {
    665                     memcpy (pvBuffer, address.raw(), cbAddress);
     665                    if (address.raw())
     666                    {
     667                        memcpy (pvBuffer, address.raw(), cbAddress);
     668                    }
     669                    else
     670                    {
     671                        /* The value is an empty string. */
     672                        *(uint8_t *)pvBuffer = 0;
     673                    }
    666674                }
    667675
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette