Bläddra i källkod

[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 16 år sedan
förälder
incheckning
d51d80f785
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1
    1
      src/interface/pxe/pxe_preboot.c

+ 1
- 1
src/interface/pxe/pxe_preboot.c Visa fil

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

Laddar…
Avbryt
Spara