Quellcode durchsuchen

[pxe] Fix a typo in PXENV_GET_CACHED_INFO that broke Altiris

__from_data16 takes the value pointed to, rather than the pointer
itself.  This was silently causing gPXE to return a dud buffer pointer
when the caller did not supply a buffer for PXENV_GET_CACHED_INFO.
tags/v0.9.4
Michael Brown vor 16 Jahren
Ursprung
Commit
d51d80f785
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/interface/pxe/pxe_preboot.c

+ 1
- 1
src/interface/pxe/pxe_preboot.c Datei anzeigen

@@ -197,7 +197,7 @@ PXENV_EXIT_t pxenv_get_cached_info ( struct s_PXENV_GET_CACHED_INFO
197 197
 		 */
198 198
 		get_cached_info->Buffer.segment = rm_ds;
199 199
 		get_cached_info->Buffer.offset =
200
-			( unsigned ) ( __from_data16 ( info ) );
200
+			( unsigned ) ( & __from_data16 ( *info ) );
201 201
 		get_cached_info->BufferSize = sizeof ( *info );
202 202
 		DBG ( " returning %04x:%04x+%04x['%x']",
203 203
 		      get_cached_info->Buffer.segment,

Laden…
Abbrechen
Speichern