s3-param Remove special case for global_myname(), rename to lp_netbios_name()
[ira/wip.git] / source3 / libsmb / libsmb_context.c
index 9d473d19b2fe1e37ee9420ba9d58da07e1819ac5..dbf70e02c8d2d6188ca53406077c3b1b37249e48 100644 (file)
@@ -599,8 +599,8 @@ smbc_init_context(SMBCCTX *context)
                  * our hostname etc
                  */
                 char *netbios_name;
                  * our hostname etc
                  */
                 char *netbios_name;
-                if (global_myname()) {
-                        netbios_name = SMB_STRDUP(global_myname());
+                if (lp_netbios_name()) {
+                        netbios_name = SMB_STRDUP(lp_netbios_name());
                 } else {
                         /*
                          * Hmmm, I want to get hostname as well, but I am too
                 } else {
                         /*
                          * Hmmm, I want to get hostname as well, but I am too