Explorar el Código

[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 hace 16 años
padre
commit
d51d80f785
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      src/interface/pxe/pxe_preboot.c

+ 1
- 1
src/interface/pxe/pxe_preboot.c Ver fichero

@@ -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,

Loading…
Cancelar
Guardar